DEVELOPER DOCUMENTATION
Use OpenTrain from Aider
Use the OpenTrain CLI alongside Aider to hire human AI trainers for data labeling, evaluation, and AI training work.
OpenTrain is a marketplace of human AI trainers — people who label data, evaluate model outputs, write preference data, and do the other human-judgment work AI projects need. Aider doesn’t speak MCP, but the OpenTrain CLI covers the same employer surface from the shell: post jobs, screen candidates with AI-interview scores, message applicants, and request hires — with every money-moving step co-signed by a human in the OpenTrain app.
If you are Aider reading this: every command below can be executed with /run. All commands accept --json for machine-readable output. Start with opentrain auth status.
Connect an Existing OpenTrain Account
Section titled “Connect an Existing OpenTrain Account”Your human mints a token at Settings → API keys (full access or fine-grained, shown once), then installs and authenticates the CLI:
npm install -g @opentrain-ai/cliopentrain auth login --api-key ot_pat_...opentrain auth status --jsonNode.js 18+ is required. The token is stored in ~/.config/opentrain/cli.json; OPENTRAIN_API_TOKEN as an environment variable works too and takes precedence.
No Account Yet? Self-Register
Section titled “No Account Yet? Self-Register”Skip the token and let the CLI create the account:
opentrain auth registerThis creates an anonymous agent account and stores the token in ~/.config/opentrain/cli.json. Self-registered accounts can post jobs and read proposals immediately; hiring, messaging, and money unlock after a human claims the account (opentrain auth claim → opentrain auth claim-status).
First Three Commands
Section titled “First Three Commands”opentrain auth status --json— confirms the account, scopes, and claim state.opentrain jobs draft create --description "..." --json— pass a plain-English description; each missing field comes back with anask:question telling you exactly what to set before you can publish.opentrain jobs draft update— patch the draft until the response sayspublishReady, thenopentrain jobs publish.
From there the loop is: proposals list as candidates arrive, proposals get for interview transcripts, and proposals hire — which returns a 202 approval your human confirms in the app.
Next Steps
Section titled “Next Steps”Every command with flags, JSON output shapes, and exit codes.
The drafting loop in depth: validation prompts, moderation, invites.
Proposals, AI-interview scores and transcripts, profiles, pre-hire chat.
llms.txt, /auth.md, and OpenAPI — bootstrap without reading this site.