CLI
Commands
Section titled “Commands”| Command | Description |
|---|---|
neo |
Open interactive chat mode. |
neo chat |
Open interactive chat mode explicitly. |
neo sessions |
List saved chat sessions. |
neo doctor |
Check local config, credentials, sessions, git, and workspace readiness. |
neo sessions search <query> |
Search saved session transcripts locally. |
neo resume <id> |
Resume a saved chat session. |
neo login |
Log in to an OpenAI ChatGPT/Codex subscription with device-code auth. |
neo logout |
Remove stored OpenAI subscription credentials. |
neo help |
Print usage. |
Environment
Section titled “Environment”ANTHROPIC_API_KEYis required whenprovider: anthropic.OPENAI_API_KEYis required whenprovider: openaiusesopenai_auth: api_key.OPENROUTER_API_KEYis required whenprovider: openrouter.GOOGLE_API_KEYis required whenprovider: google.openai_auth: subscriptionuses stored ChatGPT/Codex device-code credentials created byneo logininstead of an API key.
Runtime Notes
Section titled “Runtime Notes”neowith no subcommand defaults to chat.neo doctoris local-first: it checks config, required credential presence, session store access, git availability, and whether the current directory is a git workspace without calling providers or printing secrets.neo loginprints the OpenAI Codex device-code URL and one-time code, then stores refreshable subscription credentials in~/.neo/auth.jsonwith file permissions intended to protect secrets.neo logoutdeletes the stored OpenAI subscription credential entry.- Resuming a session attempts to change into the saved session cwd. If unavailable, Neo warns and stays in the current directory.
- Session saves happen after each user turn through the TUI
WithAfterSendcallback.