Skip to main content

Getting Started with Cody CLI

Cody CLI is AINative Studio's AI-powered terminal coding assistant. It runs in your terminal and uses AI to help you write, refactor, and understand code — with 9 coding models, 5-level agent nesting, and zero-signup onboarding.

Current version: v0.11.0

Installation

npm install -g @ainative/cody-cli

npx (no install required)

npx @ainative/cody-cli

curl installer (macOS / Linux)

curl -fsSL https://ainative.studio/install-cody.sh | sh

Homebrew

brew tap ainative-studio/cody
brew install cody

Quick Start — Zero Signup

Cody works immediately after install — no account, no email, no API key required:

npm install -g @ainative/cody-cli
cody

A temporary token (tmp_ prefix) is auto-provisioned on first run. You get free-tier models instantly. Temporary tokens expire after 72 hours — upgrade to a full account to keep your data and unlock paid models. Once authenticated, all new keys use the sk_ prefix.

See Authentication for all auth options.

First Run

Interactive mode

cody

Single prompt

cody -p "Explain this codebase"
cody --print "What does this function do?"

Specify a model

cody --model kimi-k2 -p "Fix this bug"

Dry run (preview without API call)

cody --dry-run -p "Refactor this function"

Key Concepts

  • Tools — Cody can read/write files, run bash commands, search codebases, browse the web, and more.
  • MCP Servers — Connect external tools via the Model Context Protocol.
  • Memory — Cody persists context across sessions via ZeroDB.
  • CODY.md — Place instructions for Cody in a CODY.md file at your project root.
  • Skills — 11 built-in skills with a marketplace for community skills.
  • Agents — 5-level nested sub-agents for complex multi-step workflows.

Essential Commands

CommandWhat it does
/goal <condition>Work autonomously until condition met
/code-reviewReview git diff for bugs
/security-reviewOWASP Top 10 vulnerability scan
/pr-reviewReview a pull request
/bg <task>Run task in background
/auto onEnable smart permission classification
/workflow run <file>Execute YAML workflow
/agent-viewList running agents
/modelSwitch models interactively
/config key=valueSet config inline

See the full Commands Reference for all 30+ commands.

Available Models

Cody ships with 9 top coding models — 4 free, 5 paid:

ModelTierNotes
deepseek-4-flashFreeDefault (free) — 79% SWE-Bench
kimi-k2FreeDefault (paid) — 80.2% SWE-Bench
qwen3-coder-flashFreeStrong agentic coder
llama-3.3-70b-instructFreeReliable fallback
qwen-coder-32bProfessionalBalanced quality + speed
glm-5ProfessionalStrong coding + tools
kimi-k2-thinkingProfessionalReasoning model
claude-sonnet-4.5Enterprise (BYOK)Premium quality
claude-opus-4Enterprise (BYOK)Highest quality

All 9 models support tool use. See Model Configuration for details.

Next Steps