Give Your Agent the Docs
Three surfaces cover everything; none of them require authentication:| Surface | What it contains |
|---|---|
https://app.opentrain.ai/api/partner/v1/openapi.json | The Platform API’s OpenAPI spec — the machine-readable contract of record for every endpoint, parameter, and response shape. Generated from the same code that serves the requests. |
https://www.opentrain.ai/docs/llms.txt | Index of all documentation pages with one-line summaries (llms-full.txt is the whole site in one file). |
Any docs page + .md | Append .md to any page URL for clean Markdown — for example /docs/developers/annotation-platforms/webhooks.md. Code blocks and tab contents survive the export. |
A Bootstrap Prompt
Adapt and paste this into your agent to start the session: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 personalot_pat_ token from an employer test account. The same surface is available as a CLI and plain HTTP.
Claude Code
Claude Code
--scope user to make it available in every project. Full setup: Claude Code.Codex CLI
Codex CLI
~/.codex/config.toml. Full setup: Codex CLI.Cursor
Cursor
.cursor/mcp.json (project) or ~/.cursor/mcp.json (global):envFile): Cursor.Antigravity
Antigravity
Grok Build
Grok Build
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.GitHub Copilot CLI
GitHub Copilot CLI
OpenCode
OpenCode
opencode.json — note the key is mcp, the command is an array, and env lives under environment:Aider
Aider
Aider has no MCP support — use the CLI instead:Then run commands from the chat with
/run opentrain ... --json. Full setup: Aider.Any other MCP agent
Any other MCP agent
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.