K-Bot: mechanical assembly, CAN electronics, K-OS and KOS simulation
K-Bot is an open-source humanoid from K-Scale Labs. The public alpha repository includes mechanical and electrical design, KOS software components and simulator-related modules. This guide treats electrical construction, KOS simulation and real actuator commissioning as different stages. Use a matching release and validate all joints before requesting a physical stand.

1. What you need to build K-Bot
| System | Build and validation requirement |
|---|---|
| K-Bot mechanical CAD and fasteners | Revision-matched feet, legs, pelvis, trunk, arms, head and mounts |
| Matched RobStride actuator modules where specified | Joint torque and axis configuration; motor part numbers depend on release |
| CAN wiring and proper termination | Actuator communication; check node IDs and termination on every bus |
| Power distribution and protection | Reference electrical design includes 48 V motor infrastructure and protected low-voltage compute supplies |
| Raspberry Pi 5 and supporting electronics | Compute and embedded interfaces in the documented reference configuration |
| IMU and motor encoders | Orientation and joint-state feedback |
| Linux workstation with Python / MuJoCo | KOS simulation and policy development |
| Mechanical rig and electrical measurement tools | Prevent uncommanded falls during physical bringup |
Because the project is released as public alpha, compare every actuator model, board and cable assembly with its pinned source revision. Do not order a generic humanoid BOM based on assumptions about a photo.
2. K-Bot humanoid mechanical architecture
3. Clone the hardware and software files
sudo apt update
sudo apt install -y git git-lfs python3 python3-venv
git lfs install
git clone https://github.com/kscalelabs/kbot.git
cd kbot
git submodule update --init --recursive
git submodule status
ls
ls mechanical
ls electrical
Pin the repository commit and its submodules before beginning manufacturing; updating nested repositories independently may make robot files, software and motor mappings incompatible.
4. Manufacturing and assembly
- Inventory: compare mechanical CAD with the current bill of materials, manufacturing processes and mounting interfaces.
- Actuator modules: inspect each motor, reduction stage and output orientation; assign a physical joint label before installation.
- Left and right legs: assemble the mirrored joint chains, inspect hip–knee–ankle travel and provide room for CAN and power wiring.
- Pelvis and trunk: secure structural connections and mount the electronics in their designated locations.
- Arms and head: fit the model-specific motors and sensors and leave adequate cable bend radius.
- Power distribution: route protected motor and compute supply circuits according to electrical documentation, keeping the emergency stop accessible.
- Commissioning stand: rig the robot with a suitable rated support. Do not free-stand it before motor, encoder and IMU validation.
5. Electrical power architecture
The electrical reference includes a 48 V motor infrastructure and protected low-voltage conversion for computer hardware. Never wire the power system from this simplified diagram; check the actual PCB schematics, BMS requirements, fuse sizes, grounding and wiring pinout.
6. K-OS and sensor feedback structure
7. Start KOS-Sim before connecting real actuators
python3 -m venv kbot-env
source kbot-env/bin/activate
python -m pip install --upgrade pip
python -m pip install kos-sim
kos-sim kbot-v1
On another terminal, if you have cloned the kscalelabs/kos-sim repository including its examples and installed its dependencies, start the documented K-Bot example client:
git clone https://github.com/kscalelabs/kos-sim.git
cd kos-sim
# From the installed environment and repository root:
python -m examples.kbot
KOS-Sim uses a simulated backend exposing KOS gRPC-style interfaces. Test motion, state feedback and actuator mapping there first; running the simulator does not connect to a real K-Bot.
8. Prepare policy experiments with K-Sim
git clone https://github.com/kscalelabs/ksim-kbot.git
cd ksim-kbot
git submodule update --init --recursive
python -m pip install -e .
This installs the training project in the active Python environment. It does not create a compatible locomotion checkpoint automatically. Match joint indexing, observation length, robot mass and actuator limits before evaluating a policy.
9. Inspect the available MJCF model from Python
from pathlib import Path
import mujoco
path = Path("PATH_TO_KBOT_MJCF")
if not path.exists():
raise FileNotFoundError(
"Replace PATH_TO_KBOT_MJCF with the actual model file."
)
model = mujoco.MjModel.from_xml_path(str(path))
print("Bodies:", model.nbody)
print("Joints:", model.njnt)
print("Actuators:", model.nu)
for index in range(model.nu):
name = mujoco.mj_id2name(
model, mujoco.mjtObj.mjOBJ_ACTUATOR, index
)
print(index, name)
The placeholder intentionally does not invent a model path: K-Bot files and submodule directories can change between public-alpha revisions.
10. Transition from simulator to physical robot
- Confirm mechanical and electrical revisions match the KOS configuration.
- With the robot securely suspended, check each motor's ID, communication, joint limits and encoder feedback independently.
- Verify the IMU coordinate frame and motor direction against the simulation.
- Test power loss and the hardware emergency stop under controlled conditions.
- Validate a neutral posture and supported joint trajectories before any standing controller.
- Only deploy a locomotion policy that matches the installed hardware and has completed simulation and safety validation.
11. Diagnostic guide
| Issue | Diagnosis |
|---|---|
| kos-sim not found | Activate the intended Python environment and reinstall dependencies |
| Model resources missing | Check recursive submodule checkout and repository revision |
| Simulation oscillation | Inspect actuator limits, timestep, contacts and solver parameters |
| Motor not seen on CAN | Check cable, power, address, bitrate and termination with power isolated |
| Robot joint direction disagrees | Reconcile model axis and encoder calibration, do not start a gait |
| Policy crashes or yields unsafe targets | Compare action and observation dimensions to the training run |
Public-alpha status means a complete, guaranteed physical first-walk command cannot be asserted from the repository alone. The simulation route above is reproducible only with matching published components. Do not energize a full humanoid until an independent hardware safety review is complete.
Complete practical guide: K-Bot
The public K-Bot alpha is most useful as a simulation and controller integration project until all physical fabrication and commissioning details have been recovered.
1. Files, parts and fabrication
- Clone recursively to obtain the pinned submodules. Save the commit and submodule status beside the parts inventory.
- Open the mechanical design using its supported CAD tool and identify leg, torso and arm interfaces. Record motor, connector, fastener and material requirements from the released drawings; flag missing entries.
- Only fabricate a subsystem with a complete drawing and tolerance specification. A rendered model does not define the material or bearing fit.
2. Software installation and configuration
- Use the Linux environment and dependency versions described by ksim-kbot. Inspect its instructions before installing GPU simulation dependencies.
- Keep the simulation model and kos-kbot runtime on compatible commits. Check the controller observation order, action array and joint names against the model.
- Use the simulation entry point supplied by that checkout; no generic K-Bot motor command is assumed.
Commissioning diagram
- 1Pinned K-Bot repository
- 2ksim-kbot model
- 3Policy observation vector
- 4Joint action mapping
- 5Simulated feedback
Mermaid diagram source
flowchart TD
N0["Pinned K-Bot repository"]
N1["ksim-kbot model"]
N2["Policy observation vector"]
N3["Joint action mapping"]
N4["Simulated feedback"]
N0 --> N1
N1 --> N2
N2 --> N3
N3 --> N43. Power-on preparation and first movement
- Run the source and submodule checks in the workshop below before starting simulation.
- Load a neutral model pose and verify that all joints and contact geometry appear in the viewer. Move a single joint in the simulator to verify its sign.
- Maintain a physical commissioning block until actual wiring, drive limits, stop behavior and initialization are documented.
4. Programming exercise
Use the following offline repository diagnostic to locate the exact runnable setup rather than guessing an entry point.
git rev-parse HEAD
git submodule status --recursive
git ls-files | grep -Ei 'readme|pyproject.toml|requirements|\.urdf$|\.xml$'Each submodule should resolve to its pinned commit; a leading minus in submodule status denotes an uninitialized submodule. Locate the simulation README and model before installing.
5. Progress to practical operation
- Run the simulator's published stationary task and log joint ordering.
- Review the controller's observed base orientation and actions in a simulated step; stop on mismatched dimensions or unstable contacts.
- Only after a complete hardware release and controlled setup should the same policy be considered for supported standing or walking. Running is an additional validation task, not an alpha startup feature.
6. Software and hardware diagnostics
- Submodule path empty
- Initialize the pinned submodule and confirm its commit.
- Policy input dimension mismatch
- Match the model and policy revision; inspect observation order.
- Physical specification missing
- Keep fabrication and motor commissioning blocked.
Technical basis: K-Scale Labs K-Bot, ksim-kbot and kos-kbot source material. Programming examples are identified as simulation, offline analysis or documented interface instructions. No physical commissioning test is claimed.
K-Bot alpha source, CAD and controller setup
Alpha research project: incomplete build route
Public alpha files do not establish a complete, reproducible consumer kit or commissioning manual.
From parts to first test 4 steps
Inspect the mechanical and electrical releases
Download the CAD and board files and confirm which parts actually have drawings or an orderable specification. Do not purchase unspecified substitutes.
Reference 1 ↓Clone the complete source tree
Use git clone --recurse-submodules https://github.com/kscalelabs/kbot.git to obtain the linked repositories; record the checked-out revisions.
Reference 3 ↓Start with simulation
Inspect ksim-kbot and its robot configuration, then run the supported simulation workflow before selecting any real actuators.
Reference 3 ↓Review robot-side software
Check kos-kbot and inference setup against the electrical resources. For a physical build, obtain missing wiring, safety limits and commissioning details from maintainers before energizing hardware.
Reference 3 ↓
Parts, files and official manuals 3 references
Alpha research integration
Practical implementation notes for K-Bot. Use the exact hardware and software revision specified in the project documentation.
Tools and equipment
- CAD viewer
- Git with submodules
- Linux dev environment
- simulation workstation; only obtain electronics with a verified BOM
Component illustration
- 1Leg CAD
- 2Pelvis CAD
- 3Torso CAD
- 4Board layouts
Control architecture
- 01ksim-kbot model
- 02Policy inference
- 03kos-kbot runtime
- 04Unverified hardware interface
Mechanical preparation and assembly
Inspect the mechanical models and board design before ordering. Make a table of each joint, actuator model, mounting geometry and connector; mark absent specifications. Fabricate only a verified subsystem rather than inferring missing materials or tolerances.
Electrical setup and calibration
Review kos-kbot and electrical files for the actual motor protocol and board interfaces. Compare configuration with simulation joint order. Do not connect real power without complete wiring, polarity, fuse and joint limit documentation.
Software setup and programming
Clone the source recursively, inspect submodule commits and read the ksim-kbot setup. Run the simulation workflow in the documented environment; validate observation and action mapping. Treat missing build and firmware details as a block to physical commissioning.
First test and acceptance criteria
A simulation replay can check joint ordering and configuration. No general powered startup sequence is established by the public alpha release, so the hardware gate stays closed until missing documents are obtained.
Programming and configuration example
Check every source dependency is present before configuring the simulation. No actuator command is sent.
git clone --recurse-submodules https://github.com/kscalelabs/kbot.git
cd kbot
git submodule status --recursiveTroubleshooting
A missing submodule or stale firmware dependency is a software integration issue; resolve the pinned commit first. Missing hardware drawings or joint limits are a physical-build blocker.
Technical reference: project release documentation. The assembly references above provide the revision-specific drawings and BOM. Examples are editorial walkthroughs or documented commands; they have not been physically tested by TechniaHQRobot.
The published status sets expectations
A public-alpha label is a practical constraint. A wiring change or interface revision may require changes to the controller, robot description and assembly documentation. The project README invites issues and contributions, but it makes no promise that an arbitrary checkout will behave like an established production robot.
The correct starting point is to identify the particular developer kit or mechanical revision you intend to study, then record the top-level commit and each submodule commit. Updating all submodules to the newest master branch can change the combination of files that previously worked together.
Reproducing a working tree
Git submodules are separate repositories with their own histories. To repeat a setup later, save the parent commit and check out the child revisions recorded by that parent. Inspect the setup and hardware instructions in each component before changing motor parameters or power distribution.
This is more useful than quoting a total number of motors from an unrelated K-Bot article: the current public top-level README does not provide a verified full-system actuator and cost breakdown.
There is a license discrepancy
The upstream README describes the software as GPL v3 and hardware as CERN-OHL-S. The checked repository LICENSE file, however, contains the MIT license text; a separate LICENSE-HW file contains CERN-OHL-S-2.0. Those two statements about software rights conflict. Check the exact file and submodule you want to redistribute, and obtain clarification from the maintainer before making a commercial reuse decision.
This discrepancy is left visible rather than resolved by guessing which notice takes precedence.
When to choose K-Bot
It can be useful for studying evolving open humanoid designs and participating in upstream development. A team needing fixed mechanical interfaces, a priced bill of materials and predictable upgrades should verify those requirements against a specific tagged release.
Submodules, manufacturing files and license differences
Answers are based on published source material and project documentation. Their order does not represent search volume.
01Why are folders empty after I clone K-Bot?
Core K-Bot software is stored in git submodules. Use a recursive clone or git submodule update --init --recursive at the selected revision.
Sources Official project source
02Are K-Bot STL files complete for a self-build?
The repository has mechanical assets, but its public-alpha status means a complete fabrication-ready package cannot be assumed. Inspect each release and the required purchased hardware.
Sources Official project source
03Which project runs the simulator and which runs the robot?
The root index identifies ksim-kbot for simulation, kos-kbot for the robot platform and kbot-inference as another submodule. Use the version pinned by the root.
Sources Official project source
04What software license applies?
The README says GPL v3 for software and CERN-OHL-S for hardware, but individual license files and modules should be checked if their text differs.
Sources Official project source
05Can I use the latest master of every submodule?
The README describes how to update submodules, but doing so may create mismatched versions. For a reproducible build, use the pinned commit identifiers first.
Sources Official project source
06Is this a stable commercial humanoid design?
The maintainers label the project public alpha and explicitly warn that breaking changes should be expected.
Sources Official project source
K-Bot: parts cost, software updates and maintenance
This practical ownership section complements the original assembly and programming instructions. Public files do not guarantee that all components can still be purchased or that every build is supported.
| Item | Project record |
|---|---|
| Cost record / BOM target | No independently verified BOM total |
| Software licence | Conflict: repository LICENSE says MIT; README says GPL-3.0 |
| Hardware licence | CERN-OHL-S-2.0 (LICENSE-HW) |
| Simulation availability | Check referenced submodules for model coverage |
| Build difficulty | Advanced |
How to obtain the robot or its parts
Use the K-Bot documentation and hardware release to identify whether an assembled product, kit or self-sourced parts are offered. Price the matching revision, not a photograph or an old bill of materials. Include actuators, controller, supply, wiring, tools, fabrication, shipping, tax and spare parts. A historical BOM target is not a current delivered quote.
- Project documentation
- Source repository and version history
- CAD / fabrication files
- Revision-specific workshop source
How the hardware and software work together
Mechanical path: Leg CAD → Pelvis CAD → Torso CAD → Board layouts.
- ksim-kbot model
- Policy inference
- kos-kbot runtime
- Unverified hardware interface
Feedback, fault detection and the approved stop function constrain the command path.
Clone the source recursively, inspect submodule commits and read the ksim-kbot setup. Run the simulation workflow in the documented environment; validate observation and action mapping. Treat missing build and firmware details as a block to physical commissioning.
Install, update and recover the software
Keep the exact hardware revision, repository commit, operating system, dependencies, controller firmware and calibration in a local build manifest. Read the project’s setup instructions before installing. Use an isolated environment and a separate checkout for upgrades; compare release notes, regenerate only the documented configuration, and first repeat a simulation or read-only test. Back up calibration and original firmware files where the project supports it. Restore only a documented compatible release if the new version fails.
Project-specific verification: A simulation replay can check joint ordering and configuration. No general powered startup sequence is established by the public alpha release, so the hardware gate stays closed until missing documents are obtained.
Power, battery replacement and cycle life
Confirm a documented pack, charger and protection system before physical deployment; simulation files alone do not establish these.
Battery cycle life and robot service life are different. Equivalent full cycles (EFC) can be estimated as cumulative discharged energy (Wh) divided by initial usable pack energy (Wh). State of health (SOH) is measured usable capacity divided by baseline usable capacity × 100%, under comparable conditions. Example only: 1,800 Wh discharged from a 600 Wh reference pack equals 3 EFC; neither number is a specification for this robot. Ask for the manufacturer’s cycle rating, temperature limits, capacity-retention criterion and warranty. Do not use an arbitrary percentage as a replacement threshold.
Common problems, wear and service plan
| When | Inspection and evidence |
|---|---|
| Before operation | Check public-alpha hardware completeness, actuator data and KOS runtime compatibility; document unsupported steps rather than assuming a finished production service plan. |
| After a fault or impact | Review kos-kbot and electrical files for the actual motor protocol and board interfaces. Compare configuration with simulation joint order. Do not connect real power without complete wiring, polarity, fuse and joint limit documentation. |
| After software or parts change | Record versions and replaced part serials; compare the same approved test with the earlier baseline. Stop on new errors or unexpected movement. |
| At manufacturer service intervals | Use the documented interval and authorized service procedures. No universal calendar or lubricant is assumed. |
| At end of service | Ask about spare-part availability, data removal, battery take-back and local electronics recycling. |
What is not established by the published files
The project documentation must provide any claimed rated service life, battery cycle endurance, duty limits, warranty and repair intervals for the exact hardware. Without a cited endurance test, report those values as not established, not zero and not an estimate. For a DIY build, keep a parts-replacement log and report conditions when measuring reliability.
Original documentation
- Official project source
- MIT text in the repository LICENSE file
- Hardware CERN-OHL-S license file
- Official project source
- K-Bot electrical and board resources
Found a changed specification? Submit a correction with its source ↗