Getting started¶
This guide walks you from "I just heard about CCHarbour" to a productive first session in about five minutes. Three ways to run it:
- Download a release binary — fastest, no toolchain needed.
- Try the web playground — runs in your browser, no install.
- Build from source — if you want to hack on it.
Pick a provider and get an API key¶
CCHarbour talks to any OpenAI-compatible chat API. The default backend is
DeepSeek; you can also point it at GLM (Zhipu), Moonshot Kimi, OpenAI, or
any other compatible endpoint by changing base_url in settings.json
and the model name. See the Providers
section in Configuration for sign-up links, indicative pricing and
benchmark scores to help you choose.
Download¶
The latest release ships three binaries built fully static — no DLLs, no shared libs, no runtime dependencies.
| File | Platform | Size |
|---|---|---|
cc.exe |
Windows x64 (MSVC mingw-w64) | ~2.2 MB |
cc-linux |
Linux x64 (glibc, dynamic-link) | ~2.0 MB |
cc-macos |
macOS Intel x64 (clang) | ~1.6 MB |
Drop it anywhere on your PATH (or run it from a project directory).
First run¶
The banner appears with your username, the model, and the current working directory. Type a request and the agent gets to work.
Override the model on the fly
cc deepseek-v3.2 (or any chat model your backend serves). Setting
the DEEPSEEK_MODEL env var does the same thing.
Your first session¶
Try this in order — each command exercises a different feature.
- Ask a question about the project.
"What languages does this repo use, and where is the entry point?"
The agent reads files with
glob/grep/read, then answers. - Make a small edit. "Add a top-line comment to every .prg file
explaining what the module does." The first
editcall prompts becauseeditdefaults toask. Hityonce, orato allow for the rest of the session. - Try a slash command. Type
/helpfor the full list. - Save the conversation.
/save my-sessionwrites it to disk;/load my-sessionresumes it next time.
Common next steps¶
- Tell the agent about your project once. Run
/initto have it inspect the repo and write aCC.md; future sessions will load that automatically. - Pin a discipline.
/cavemanfor ultra-terse replies./planbefore a refactor — the agent describes the plan, you approve, only then can itwrite/edit/shell. - Pin a goal.
/goal <text>arms a "keep working until the condition is met" loop: the agent emitsGOAL COMPLETEwhen done, otherwise the REPL auto-feedsContinue toward the goal.between turns (capped at 25 auto-iterations). - Save tokens.
/leantrims the system prompt for long sessions. - Watch the spend.
/costshows token usage and estimated price. - Snapshot the session.
/save [name]writes the full state to JSON — messages, model, usage, goal, modes, skills, timer and the pending suggestion./load [name]round-trips the whole thing. - Background subagents. When the model calls
dispatch_agent_background, the subagent runs on a worker thread and the parent keeps going. Inspect with/tasks, view with/tasks view bg1, cancel with/tasks kill bg1. - Skills. Drop your own checklists under
.ccharbour/skills/— see the seven that ship by default.
Build from source¶
Need to hack on CCHarbour itself, or build for a platform we don't
publish? You'll need Harbour 3.2 (with hbmk2 on PATH) and a C
compiler.
Requires the Visual Studio C++ build tools (2019 or 2022).
The shipped msvc64 Harbour libraries link against /MD, so
build.bat forces dynamic-CRT linking to keep the link clean.
Produces cc.exe in the working directory. update_cc.bat
hot-swaps a fresh build into place without stopping a running REPL.
Stuck?¶
- Read the Commands reference for every slash command and tool.
- Check Configuration for
settings.json, the permission gate, skills, and theCC.md/memory.mdfiles. - The roadmap lists what is shipped and what's coming next.
- Open an issue on GitHub.