First Run
Outcome
Start Carapace in secure local mode, verify health, and get your
first response in cara chat.
Prerequisites
carainstalled: Install guide- One provider key set in your shell:
ANTHROPIC_API_KEYorOPENAI_API_KEY
macOS/Linux
1) Generate service token
export CARAPACE_GATEWAY_TOKEN="$(openssl rand -hex 32)"2) Create minimal config
(carapace.json5)
{
"gateway": {
"bind": "loopback",
"port": 18789,
"auth": {
"mode": "token",
"token": "${CARAPACE_GATEWAY_TOKEN}"
}
},
"anthropic": {
"apiKey": "${ANTHROPIC_API_KEY}"
}
}
If using OpenAI instead:
"openai": {
"apiKey": "${OPENAI_API_KEY}"
}
3) Start Carapace
CARAPACE_CONFIG_PATH=./carapace.json5 cara4) Smoke checks (expected checkpoints)
In a second terminal:
cara status --host 127.0.0.1 --port 18789
curl -H "Authorization: Bearer ${CARAPACE_GATEWAY_TOKEN}" http://127.0.0.1:18789/health
cara chatExpected:
cara statusshows service healthy./healthreturns JSON with"status":"ok".cara chatopens REPL and returns a model response.
Windows (PowerShell)
1) Generate service token
$bytes = [byte[]]::new(32)
[System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes)
$env:CARAPACE_GATEWAY_TOKEN = [System.BitConverter]::ToString($bytes).Replace('-', '').ToLower()2) Create minimal
config (carapace.json5)
Use the same config shown in the macOS/Linux path above.
3) Start Carapace
$env:CARAPACE_CONFIG_PATH = ".\\carapace.json5"
cara4) Smoke checks (expected checkpoints)
In a second PowerShell terminal:
cara status --host 127.0.0.1 --port 18789
curl.exe -H "Authorization: Bearer $env:CARAPACE_GATEWAY_TOKEN" http://127.0.0.1:18789/health
cara chatExpected:
cara statusshows service healthy./healthreturns JSON with"status":"ok".cara chatopens REPL and returns a model response.
Continue
- Need channel setup? Go to Cookbook
- Just want Discord first? Use Add Carapace to Discord
- Stuck? Use Get Unstuck