Skip to main content
Connect your terminal AI coding agent to Corti’s EU-hosted language models. Install a supported agent, run the Corti CLI, and start coding — every prompt is processed on Corti’s EU infrastructure.
The Corti CLI writes a corti provider entry into each selected agent’s config and manages a .env block with your credentials. Configs reference CORTI_BEARER rather than embedding secrets, so nothing sensitive lands in version control.

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 containing CORTI_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.
1

Install a coding agent

The Corti CLI supports the following agents. Install one (or more) using your preferred method.
Install
curl -fsSL https://opencode.ai/install | bash
Verify
opencode --version
Learn more at opencode.ai.
2

Run the setup wizard

Run the interactive setup to authenticate and configure the Corti provider for your installed agents:
npx @corti/cli init models
npx requires Node.js 18+. Download it from nodejs.org or install via a version manager like fnm or nvm.
The wizard will:
  1. Ask you to paste the .env block you copied from the Corti Console.
  2. Probe Corti’s /models endpoint and let you pick a default model.
  3. Detect installed agents and pre-select them (toggle with Space).
  4. Let you choose scope: Global (~/.config), Project (current directory), or both.
  5. Ask you to confirm before writing anything.
Press Enter to accept the defaults at each step.
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
3

Load your credentials

Load the .env so CORTI_BEARER is available in your shell.
set -a; source ~/.env; set +a
4

Start coding

Launch your agent — you’re now running an AI coding assistant backed by Corti Models.
opencode

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.