Before you start
You’ll need:- A terminal on macOS, Linux, or Windows
- Node.js 18+ installed (required to run the Corti CLI via
npx) - A Corti Console account (free to create)
Get your credentials
Grab your credentials from the Corti Console’s Developer Quickstart — a one-click Copy all as .env variables action copies a block containingCORTI_TENANT_NAME, CORTI_CLIENT_ID, CORTI_CLIENT_SECRET, and CORTI_ENVIRONMENT — everything the CLI needs.
Open the Developer Quickstart in the Corti Console
Sign in, then under Default client → Copy all as .env variables.
Install a coding agent
The Corti CLI supports the following agents. Install one (or more) using your preferred method.
- OpenCode
- OpenCode Desktop
- ForgeCode
- Crush
- Pi
Run the setup wizard
Run the interactive setup to authenticate and configure the Corti provider for your installed agents:The wizard will:
npx requires Node.js 18+. Download it from nodejs.org or install via a version manager like fnm or nvm.- Ask you to paste the
.envblock you copied from the Corti Console. - Probe Corti’s
/modelsendpoint and let you pick a default model. - Detect installed agents and pre-select them (toggle with Space).
- Let you choose scope: Global (
~/.config), Project (current directory), or both. - Ask you to confirm before writing anything.
The CLI writes a
corti provider entry into each selected agent’s config file, plus a managed .env block with your credentials:- ForgeCode —
~/.forge/.forge.toml - OpenCode —
~/.config/opencode/opencode.json(or.jsonc) - Crush —
~/.config/crush/crush.json - Pi —
~/.pi/agent/models.json
Load your credentials
Load the
.env so CORTI_BEARER is available in your shell.- macOS / Linux
- Windows (PowerShell)
- Windows (cmd)
Next steps
AI Coding Tools
Prompt Claude Code, Cursor, Codex, or Lovable with a Corti build skill.
API Reference
Browse the full Corti API with interactive examples.
JavaScript SDK
SDK reference — the foundation the CLI and skills build on.
Agentic Framework
Multi-expert orchestration, MCP servers, and the agent runtime.
AI-generated code should always be reviewed and tested before use in
production. Human oversight ensures correctness, security, and compliance with
healthcare regulations.