quadruped

Train Ant with reinforcement learning

Gymnasium's four-legged walker with contact-rich dynamics.

Actuators
8
First skill
1M steps
Size
—
License
Gymnasium (MIT)
Ant in MuJoCo

Tricks people teach Ant

How it works

  1. Describe the trick in a sentence and pick Ant.
  2. alia, kualia's assistant, writes the Gymnasium task — reward, success, failure and world objects — and runs 13 automatic checks.
  3. Train with PPO on kualia's servers and watch every checkpoint replayed in 3D in your browser.
  4. Export a deterministic ONNX policy and run it on the robot with onnxruntime.

From your coding agent

Working in Claude Code, Cursor or Codex? Connect kualia as an MCP server with a personal API key (Settings → API keys), then ask: “Train my Ant to walk forward with kualia.”

claude mcp add --transport http kualia https://kualia.ai/api/mcp \
  --header "Authorization: Bearer $KUALIA_API_KEY"
Coding-agent guide →

Questions

Can I train Ant without writing code?

Yes. Pick Ant in kualia, describe the trick in a sentence, and kualia's assistant writes the Gymnasium task (reward, success, failure and any world objects), runs 13 automatic checks and trains a PPO policy in MuJoCo.

How many training steps does Ant need?

Roughly 1M steps for a first real skill with PPO. Start with a 10,000-step first try to check the task before spending more.

Can I run the trained policy on the real Ant?

kualia exports a deterministic ONNX policy with observation normalisation baked in, plus metadata describing observations and action scaling. You run it with onnxruntime on the robot's computer. Test carefully: simulation and hardware differ.

Can my coding agent use kualia for Ant?

Yes. kualia is a remote MCP server at https://kualia.ai/api/mcp. Add it to Claude Code, Cursor or Codex with a personal API key and ask the agent to train Ant.

More classic mujoco bodies