Skip to content
OpenHands logo (All Hands AI)

OpenHands via Tokonomix

Point OpenHands’ autonomous developer at Tokonomix with an openai/ model and a base URL — 130+ models and consensus on one key.

OpenAI-compatible (openai/ model)Autonomous dev agentMIT · open sourceDocker · all platforms
OpenHands — an autonomous AI developer, via Tokonomix

What is OpenHands?

OpenHands (by All Hands AI) is an open-source platform for autonomous AI software developers. An OpenHands agent can write code, run commands, browse the web and call APIs — doing what a human developer does, in a sandboxed runtime.

  • Runs as a containerised agent with a web UI and a sandboxed execution runtime.
  • Uses LiteLLM under the hood, so any OpenAI-compatible endpoint works via an openai/ model name.
  • Plans and executes multi-step tasks end to end, then reports back.
  • Configurable from the UI (Advanced LLM settings) or config.toml.

Why route OpenHands through Tokonomix?

OpenHands is fully autonomous — it can run for many steps unattended. That makes both model quality and a spend ceiling matter, and makes a consensus check on the plan genuinely valuable. Tokonomix gives you all three on one key.

  • Drive the agent with any of 130+ models; switch with a one-line model change.
  • Use openai/tokonomix-consensus when correctness beats latency on a hard task.
  • Per-call spend caps stop an unattended run from running away with your budget.
  • Region / origin routing keeps a code-streaming agent compliant.

Connect Tokonomix to OpenHands

In the OpenHands Settings → LLM tab, enable Advanced options, then set a custom model with the openai/ prefix and the Tokonomix Base URL.

# OpenHands Settings → LLM → Advanced
Custom Model : openai/anthropic/claude-sonnet-4-6   # or openai/<any-slug>
Base URL     : https://tokonomix.ai/api/v1
API Key      : tok_live_your-key
# Opt-in (planning/review only, no tool-calling): openai/tokonomix-consensus
The openai/ prefix is required

OpenHands routes through LiteLLM, so the model must be openai/<slug> — e.g. openai/tokonomix-consensus or openai/anthropic/claude-sonnet-4-6 — for the OpenAI-compatible Base URL to be used.

Verify it works

  • Save the LLM settings and start a new conversation with a small task.
  • Confirm OpenHands plans and executes, and that the model used is your Tokonomix slug.
  • Check the request and token usage appear in your Tokonomix dashboard.

Model selection

Which model and endpoint should my agent use?

Pick by what your agent does, then swap the model id any time — every model in the catalog works through the same key.

What your agent doesUse this
Edits files / calls tools and streams responses (most coding agents)An Anthropic model via the Anthropic endpoint (tools + streaming both work)
Calls tools but does not need streaming (any model)The OpenAI-compatible endpoint with a single model id
Wants tools and streaming on a non-Anthropic modelRun non-streaming for now — streaming tool-calls on other providers is not enabled yet
Plain chat, no toolsEither endpoint; streaming is fine
Wants a cross-model verdict (consensus) on a high-stakes answerSet model to tokonomix-consensus on the OpenAI-compatible endpoint — note: consensus rejects tool requests (no tool-calling)
Endpoint & API reference (technical)

anthropic-messages → https://tokonomix.ai/api/anthropic — tools ✓, streaming ✓ (use an Anthropic model). openai-completions → https://tokonomix.ai/api/v1 — tools ✓ (single-model passthrough), streaming with tools not yet enabled. Plain chat: streaming works on both. Consensus: openai-completions, model tokonomix-consensus, no tools. Swap the model id to any slug returned by GET /api/v1/models.

Browse all models →

Related agents