Skip to main content
The whole platform integration — webhook consumer, provisioning calls, usage reporting — is plain HTTP work with no SDK dependency, which makes it an ideal task for a coding agent. Every contract it needs is machine-readable: the Platform API ships a served OpenAPI spec, and every page of these docs exports as clean Markdown. Give your agent those URLs and a goal, and it can build, test, and harden the integration in one session. The reference integration on the next page was built exactly this way.

Give Your Agent the Docs

Three surfaces cover everything; none of them require authentication: The pages worth feeding in full, in reading order: overview, register your app, consent and installs, project links, webhooks, usage sync, and the reference integration.

A Bootstrap Prompt

Adapt and paste this into your agent to start the session:
Keep a human in the loop where OpenTrain does: anything that moves money (funding, payment release, ending a funded contract) is co-signed on OpenTrain itself, so your agent can build and test the full loop without being able to spend anything.

Optional: Let Your Agent Drive the Employer Side

Testing the integration end-to-end needs an employer on the other side — someone to post a job, link it to your project, and hire. Your agent can play that role too: the OpenTrain MCP server exposes the employer surface (jobs, proposals, contracts, milestones) as tools, using a separate personal ot_pat_ token from an employer test account. The same surface is available as a CLI and plain HTTP.
Add --scope user to make it available in every project. Full setup: Claude Code.
Or declare it in ~/.codex/config.toml. Full setup: Codex CLI.
.cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Full setup (including keeping the token out of JSON with envFile): Cursor.
~/.gemini/config/mcp_config.json:
Full setup: Antigravity.
Reads Claude Code-format .mcp.json at the project root (same mcpServers shape as Cursor above), or use the /mcps modal in-session. Full setup: Grok Build.
Run /mcp add in-session, or edit ~/.copilot/mcp-config.json:
Full setup: Copilot CLI.
opencode.json — note the key is mcp, the command is an array, and env lives under environment:
Full setup: OpenCode.
Aider has no MCP support — use the CLI instead:
Then run commands from the chat with /run opentrain ... --json. Full setup: Aider.
Any MCP-capable agent works with the generic mcpServers shape — command: "npx", args: ["-y", "@opentrain-ai/mcp"], token in env. Examples for Claude Desktop and Windsurf: Other MCP Agents.

Next Steps

Register Your App

Self-serve: create the app, get your client credentials, send your first consent link.

Reference Integration

The complete worked example your agent can use as a blueprint.

Usage Sync and Budgets

Report work back and keep funded budgets ahead of consumption.