πŸŽ‰ Now open source Β· v0.1.0-alpha-2 β€” Join the waitlist for GA notifications Join waitlist β†’
03 β€” Configure & run

First-run setup

The costaff onboard wizard writes your .env: model provider, language, timezone, and any channels you want.

source ~/.zshrc        # or ~/.bashrc on Ubuntu
costaff onboard

What the wizard asks for

What gets generated

Auto-generated secrets

The wizard generates random hex values for ID_SALT, MCP_SECRET_KEY, and API_HEADERS_KEY if they're missing. These secure agent-to-agent calls and identity hashing β€” don't change them once they're set.

Your final ~/.costaff/costaff/.env looks roughly like:

ID_SALT=<random 64 hex>
MCP_SECRET_KEY=<random 64 hex>
API_HEADERS_KEY=<random 64 hex>

COSTAFF_AGENT_MODEL_PROVIDER=gemini
GOOGLE_API_KEY=<your key>
COSTAFF_AGENT_GEMINI_MODEL=gemini-3-flash-preview

COSTAFF_PREFERRED_LANGUAGE=English
TIMEZONE=Asia/Taipei

POSTGRES_USER=costaff
POSTGRES_PASSWORD=costaff_pass
POSTGRES_DB=costaff_db

Re-running onboard

Safe to re-run any time. The wizard reads your existing .env as defaults and only overwrites keys you explicitly change. Already-deployed channels stay untouched.

When the wizard finishes

A "next steps" panel sums it up: costaff start, then costaff dashboard (opens http://localhost:8501 β€” click Chat). If anything looks off later, costaff doctor writes a full diagnostic report ending with a Suggested fixes list.

Scripted installs

For CI or unattended deploys, skip the wizard: costaff bootstrap -k <gemini-key> writes the minimum env (and generates the same security secrets), then chains into costaff start.