---
title: "Get started with coding agents · OpenVibe.Codes"
canonical: "https://openvibe.codes/start"
updated: null
---

# Get started with coding agents · OpenVibe.Codes

HTML: [Get started with coding agents · OpenVibe.Codes](https://openvibe.codes/start)

# Get started with coding agents

`openvibe-codes` runs a coding task on whichever agent fits it, hands it to the next one when an agent fails, hits its limit or goes quiet, and keeps the whole run. It runs on your machine with the agents and keys you already have: nothing goes through OpenVibe, and it needs no account.

## Install

Node.js 22 or newer, then:

~~~~
npm install -g https://codeload.github.com/OpenVibers/OpenVibe.Codes/tar.gz/refs/tags/v0.18.0
~~~~

Or from a clone: `git clone https://github.com/OpenVibers/OpenVibe.Codes`, `npm ci`, then `node bin/openvibe-codes.js`. Check what it found with `openvibe-codes agents`.

## The agents it can use

Install any of them; the harness uses what is there and says why the rest are not.

| Agent | What it needs |
| --- | --- |
| [Claude Code](/harnesses#claude-code) | `claude` on PATH, signed in |
| [Claude Code (another provider)](/harnesses#claude-other) | `claude` on PATH, plus your own Anthropic-compatible endpoint in `ANTHROPIC_BASE_URL`, its token in `ANTHROPIC_AUTH_TOKEN` and the model id in `ANTHROPIC_MODEL` |
| [MiniMax Code](/harnesses#minimax-code) | `mcode` on PATH, signed in to your own MiniMax account |
| [Muse Code](/harnesses#muse) | `muse` on PATH, signed in with `muse login`; uses your Muse plan with contributor mode off |
| [Antigravity CLI](/harnesses#antigravity) | `agy` on PATH, signed in with Google by one `agy` run; your free tier or Google AI Pro or Ultra |
| [Codex](/harnesses#codex) | `codex` on PATH, signed in |
| [OpenCode](/harnesses#opencode) | `opencode` on PATH |
| [Command Code](/harnesses#command-code) | `cmd` on PATH |
| [Aider](/harnesses#aider) | `aider` on PATH |
| [DeepSeek](/harnesses#deepseek) | `DEEPSEEK_API_KEY`; the harness runs its own agent loop against the API |
| [OpenVibe.AI](/harnesses#openvibe-ai) | `OPENVIBE_APP_ID` and `OPENVIBE_APP_SECRET` (an app of your project on openvibe.services with `ai.app.run`), or a Network token in `OPENVIBE_AI_TOKEN`. For tool-capable models, keep your provider's key as a project secret granted to `ai` and name it in `OPENVIBE_AI_SECRET`, with `OPENVIBE_AI_PROVIDER_URL` and `OPENVIBE_AI_PROVIDER_MODEL`: the key never sits on this machine |
| [Your own model](/harnesses#openai-compatible) | `OPENVIBE_CODES_BASE_URL` (an OpenAI-compatible server: llama.cpp, vLLM, Ollama, LM Studio…), `OPENVIBE_CODES_MODEL`, and `OPENVIBE_CODES_API_KEY` if it wants one |
| [Claude Agent](/harnesses#claude-acp) | `npx` on PATH (it fetches `@agentclientprotocol/claude-agent-acp@0.113.0`), signed in to Claude Agent on this machine; runs over the Agent Client Protocol |
| [Codex](/harnesses#codex-acp) | `npx` on PATH (it fetches `@agentclientprotocol/codex-acp@2.12.1`), signed in to Codex on this machine; runs over the Agent Client Protocol |
| [Gemini CLI](/harnesses#gemini-cli) | `npx` on PATH (it fetches `@google/gemini-cli@0.71.1`), signed in to Gemini CLI on this machine; runs over the Agent Client Protocol |
| [Qwen Code](/harnesses#qwen-code) | `npx` on PATH (it fetches `@qwen-code/qwen-code@0.29.0`), signed in to Qwen Code on this machine; runs over the Agent Client Protocol |
| [Kimi Code](/harnesses#kimi-code) | `npx` on PATH (it fetches `@moonshot-ai/kimi-code@2.8.1`), signed in to Kimi Code on this machine; runs over the Agent Client Protocol |
| [Grok Build](/harnesses#grok-build) | `npx` on PATH (it fetches `@xai-official/grok@1.0.94`), signed in to Grok Build on this machine; runs over the Agent Client Protocol |
| [GitHub Copilot](/harnesses#copilot-cli) | `npx` on PATH (it fetches `@github/copilot@1.0.117`), signed in to GitHub Copilot on this machine; runs over the Agent Client Protocol |
| [Cline](/harnesses#cline) | `npx` on PATH (it fetches `cline@3.0.76`), signed in to Cline on this machine; runs over the Agent Client Protocol |
| [Kilo](/harnesses#kilo) | `npx` on PATH (it fetches `@kilocode/cli@7.8.32`), signed in to Kilo on this machine; runs over the Agent Client Protocol |
| [DeepAgents](/harnesses#deepagents) | `npx` on PATH (it fetches `deepagents-acp@0.1.7`), signed in to DeepAgents on this machine; runs over the Agent Client Protocol |
| [Auggie CLI](/harnesses#auggie) | `npx` on PATH (it fetches `@augmentcode/auggie@0.37.0`), signed in to Auggie CLI on this machine; runs over the Agent Client Protocol |
| [Qoder CLI](/harnesses#qoder) | `npx` on PATH (it fetches `@qoder-ai/qodercli@1.1.101`), signed in to Qoder CLI on this machine; runs over the Agent Client Protocol |
| [Codebuddy Code](/harnesses#codebuddy-code) | `npx` on PATH (it fetches `@tencent-ai/codebuddy-code@2.187.0`), signed in to Codebuddy Code on this machine; runs over the Agent Client Protocol |
| [GLM Agent](/harnesses#glm-acp) | `npx` on PATH (it fetches `glm-acp-agent@1.19.0`), signed in to GLM Agent on this machine; runs over the Agent Client Protocol |
| [pi ACP](/harnesses#pi) | `npx` on PATH (it fetches `pi-acp@0.0.35`), signed in to pi ACP on this machine; runs over the Agent Client Protocol |
| [Factory Droid](/harnesses#droid) | `npx` on PATH (it fetches `droid@1.23.0`), signed in to Factory Droid on this machine; runs over the Agent Client Protocol |
| [goose](/harnesses#goose) | `goose` on PATH (installed by you; Codes never downloads it), signed in to goose on this machine; runs over the Agent Client Protocol |
| [Cursor](/harnesses#cursor-agent) | `cursor-agent` on PATH (installed by you; Codes never downloads it), signed in to Cursor on this machine; runs over the Agent Client Protocol |
| [Amp](/harnesses#amp) | `amp-acp` on PATH (installed by you; Codes never downloads it), signed in to Amp on this machine; runs over the Agent Client Protocol |
| [Kiro CLI](/harnesses#kiro) | `kiro-cli` on PATH (installed by you; Codes never downloads it), signed in to Kiro CLI on this machine; runs over the Agent Client Protocol |
| [Junie](/harnesses#junie) | `junie` on PATH (installed by you; Codes never downloads it), signed in to Junie on this machine; runs over the Agent Client Protocol |
| [Mistral Vibe](/harnesses#mistral-vibe) | `vibe-acp` on PATH (installed by you; Codes never downloads it), signed in to Mistral Vibe on this machine; runs over the Agent Client Protocol |
| [Devin](/harnesses#devin) | `devin` on PATH (installed by you; Codes never downloads it), signed in to Devin on this machine; runs over the Agent Client Protocol |

## Use it

~~~~
$ openvibe-codes agents
✔ claude-code        Claude Code      ~/.local/bin/claude
✔ codex              Codex            ~/.local/bin/codex
· aider              Aider            `aider` is not on PATH (install Aider)
· deepseek           DeepSeek         set DEEPSEEK_API_KEY

$ cd my-project
$ openvibe-codes run "rename getUser to findUser everywhere"
$ openvibe-codes run --permission read "where is the session cookie set?"
$ openvibe-codes runs
$ openvibe-codes resume run_… "now add a test"
~~~~

| Command | What it does |
| --- | --- |
| `agents` | Which agents this machine can run, and why not the others. |
| `route [--task edit] [--need harness:resume]` | Which agent a task would go to, with the reason for every candidate. |
| `swarm [--tickets 4] [--concurrency 3] [--agents a,b] "goal"` | Split a goal into tickets that run at once, each on its own agent in its own git worktree, and merge them into one branch: yours is never touched. |
| `run [options] "task"` | Run a task. `--agent` skips routing, `--model` picks the first agent's model, `--cwd` sets where it works, `--attempts` caps the hand-offs (default 3), `--no-handoff` stops at the first result, `--json` prints the events. A task of `-` is read from stdin. |
| `runs` | The latest runs on this machine. |
| `show <run id> [--json]` | One run: each attempt, its session and the result; every event with --json. |
| `resume <run id> "follow-up"` | Continue the run's last session with the same agent. |

The exit code follows the result: 0 when the last agent finished, 1 when it did not.

## Permission levels

| Level | What the agent may do |
| --- | --- |
| `read` | Look and answer. Claude Code runs in plan mode, Codex in its read-only sandbox, the API agents get only list, read and search tools. |
| `edit` (default) | Change files in the working directory. Claude Code accepts edits and is refused `git push`; Codex runs in its workspace-write sandbox; the API agents can write and edit files but not run commands. |
| `full` | Anything, unattended, including running commands. Use it in a container, a VM or a throwaway checkout. |

The built-in API agent never leaves the working directory, never reads a `.env` file and never writes under `.git`, at any level.

## Hand-offs

When an attempt fails, hits a usage limit, crashes or prints nothing for a while, the harness stops it and gives the task to the next agent the router picks, leaving out the ones already tried. The next agent gets a note: the original task, which agent tried and why it stopped, the tools it used, the files it changed, its last message and `git status`. Every attempt is in the run.

## One event format

Every agent's output becomes the same events: one JSON object per line with `--json`, the same shape as Claude Code's `stream-json`, ending with exactly one `result`. Keys and tokens in an agent's output are redacted before an event is printed or kept.

~~~~
{"type":"system","subtype":"init","agent":"codex","session_id":"0199…","run_id":"run_…"}
{"type":"assistant","message":{"content":[{"type":"tool_use","name":"Bash","input":{"command":"npm test"}}]}}
{"type":"user","message":{"content":[{"type":"tool_result","content":"…","is_error":false}]}}
{"type":"system","subtype":"handoff","from":"codex","reason":"You have hit your usage limit."}
{"type":"result","subtype":"success","is_error":false,"result":"…","total_cost_usd":0.04,"usage":{…}}
~~~~

## Where runs are kept

In `$OPENVIBE_CODES_HOME`, else `$XDG_STATE_HOME/openvibe-codes`, else `~/.local/state/openvibe-codes`: one directory per run with its attempts and events, readable only by you.

## From your own code

~~~~
const { createHarness } = require('openvibe-codes');

const harness = createHarness();          // your PATH, your keys
for await (const event of harness.run({ prompt: 'fix the failing test', cwd: '.' })) {
    if (event.type === 'result') console.log(event.is_error ? 'failed' : 'done', event.result);
}
~~~~

`harness.agents()`, `harness.route({ task })` and `harness.run({ prompt, cwd, agent, permission, handoff })` are what the command line uses. The router is the same one behind [`/api/v1/harnesses/route`](/api/v1/harnesses).

## What comes next

Tasks from the web already run on your own machine ([Run locally](/run)). Next: a hosted runner on OpenVibe.Run workers for people who would rather not run agents themselves, with budgets; OpenVibe.Actor using Codes for its coding work; and [Improve OpenVibe](/improve) as a guided run: pick a repository, describe the change, get a pull request.
