Install & First Run
1. Requirements
- macOS, Linux, or Windows
- A terminal such as PowerShell or your system default terminal
- At least one API key: OpenAI, Gemini, OpenLL, Qiniu, or ModelScope
2. Install
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.ps1 | iex3. Set API key
NeoCode reads API keys from environment variables and never writes them to config files.
macOS / Linux:
export OPENAI_API_KEY="your_key_here"Windows PowerShell:
$env:OPENAI_API_KEY = "your_key_here"| Provider | Environment variable |
|---|---|
| OpenAI | OPENAI_API_KEY |
| Gemini | GEMINI_API_KEY |
| OpenLL | AI_API_KEY |
| Qiniu | QINIU_API_KEY |
| ModelScope | MODELSCOPE_API_KEY |
4. Launch
neocodeOpen a specific project:
neocode -w /path/to/your/projectType natural language in the input box to chat. Type / to see local control commands.
NeoCode also provides a browser-based Web UI:
neocode webTagged release builds start the Web UI from assets already embedded in the neocode binary, so the target machine does not need Node.js or npm. When running from source, a missing web/dist still triggers a local frontend build.
5. First conversation
Try:
Read the current project directory structure, summarize module responsibilities, and point out which files I should read first.Then:
Based on that structure, find the test entry point and the main business entry point.The agent uses file reading and search tools automatically. NeoCode asks before file writes or risky commands.
6. Add AGENTS.md for long-term projects
For maintained projects, add AGENTS.md at the repository root:
# Project Rules
- Run `go test ./...` after changing Go code
- Keep Chinese docs in Chinese
- Do not write API keys to config filesRun from source
Use source builds for development or debugging. Go 1.25+ is required.
git clone https://github.com/1024XEngineer/neo-code.git
cd neo-code
go build ./...
go run ./cmd/neocodeNext steps
- Local commands: Slash Commands
- Workspace and sessions: Sessions, Context, and Workspace
- More prompts: Usage Examples
- Installation issues: Troubleshooting
