Skip to content

Quick start

Follow this once and you should reach your first chat.

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.

Anthropic:

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."

OpenAI API key:

Terminal window
export OPENAI_API_KEY="sk-..."

OpenAI subscription:

Terminal window
neo login

neo login prints a device-code URL and one-time code, then stores the subscription credentials in ~/.neo/auth.json.

OpenRouter:

Terminal window
export OPENROUTER_API_KEY="sk-or-..."

Google Gemini:

Terminal window
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: openai
openai_auth: api_key

For 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:

  1. ./neo.yaml
  2. ~/.neo/config.yaml
  3. Embedded defaults

See the configuration reference for the full set of options.

Terminal window
neo

neo 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.

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.