Quick start
Follow this once and you should reach your first chat.
1. Choose a backend
Section titled “1. Choose a backend”Neo defaults to Anthropic. Set provider when you want OpenAI, OpenRouter, or Google Gemini.
| Backend | What you need | Config | Extra step |
|---|---|---|---|
| Anthropic | ANTHROPIC_API_KEY |
No config required | None |
| OpenAI API key | OPENAI_API_KEY |
provider: openai |
None |
| OpenAI subscription | ChatGPT/Codex subscription | provider: openai and openai_auth: subscription |
Run neo login once |
| OpenRouter | OPENROUTER_API_KEY |
provider: openrouter |
None |
| Google Gemini | GOOGLE_API_KEY |
provider: google |
None |
If you are using OpenAI with an API key, you do not need neo login. neo login is only for the
device-code subscription flow.
2. Set credentials
Section titled “2. Set credentials”Anthropic:
export ANTHROPIC_API_KEY="sk-ant-..."OpenAI API key:
export OPENAI_API_KEY="sk-..."OpenAI subscription:
neo loginneo login prints a device-code URL and one-time code, then stores the subscription credentials
in ~/.neo/auth.json.
OpenRouter:
export OPENROUTER_API_KEY="sk-or-..."Google Gemini:
export GOOGLE_API_KEY="..."3. Create neo.yaml only if you need a non-default provider
Section titled “3. Create neo.yaml only if you need a non-default provider”Anthropic users can skip this step because provider: anthropic is the default.
provider: openaiopenai_auth: api_keyFor an OpenAI subscription, use openai_auth: subscription. For OpenRouter or Gemini, set
provider: openrouter or provider: google respectively.
Neo reads the first config file it finds in this order:
./neo.yaml~/.neo/config.yaml- Embedded defaults
See the configuration reference for the full set of options.
4. Start your first chat
Section titled “4. Start your first chat”neoneo and neo chat open the same interactive terminal UI. Once it starts, try a first prompt
like:
Summarize this repository and suggest a good first change.If you built Neo locally but did not install it onto your PATH, run ./neo instead.
Common commands
Section titled “Common commands”| Command | What it does |
|---|---|
neo |
Open interactive chat mode |
neo chat |
Open interactive chat mode explicitly |
neo sessions |
List saved chats |
neo doctor |
Check local config, credentials, sessions, git, and workspace |
neo sessions search <query> |
Search saved chat transcripts |
neo resume <id> |
Resume a saved chat |
neo login / neo logout |
Set up or remove OpenAI subscription auth |
See the full CLI reference for every command and flag.