Connect ZeroClaw
Use ZeroClaw V3 custom providers, agent references and environment credentials with CanalAPI.
ZeroClaw is a Rust personal agent. This guide uses V3 configuration, not older top-level default_provider, default_model or custom:URL examples.
Checked 2026-11-03 against v0.8.7. Official configuration was checked; real CanalAPI agent tasks remain untested.
1. Install and create a complete configuration
Follow the official repository; Windows has a prebuilt installation guide. Run:
zeroclaw quickstartSelect a custom OpenAI-compatible provider, https://api.canalapi.com/v1, and a full model ID. Name both the provider alias and agent alias canalapi. Use a dedicated key; Quickstart stores credentials in its local encrypted secrets store by default.
Complete the required Model provider, Risk profile, Memory and Agent steps. Choose a risk policy suitable for a read-only trial; leave optional channels, peer groups and plugins for later. Quickstart assigns the unbounded runtime profile. Configure task budgets and timeouts before long runs; this profile is not a spending limit.
2. Check the V3 fields
Back up ~/.zeroclaw/config.toml, or the actual file selected through ZEROCLAW_CONFIG_DIR. This is a partial merge fragment, not a complete configuration:
[providers.models.custom.canalapi]
uri = "https://api.canalapi.com/v1"
model = "YOUR_MODEL_ID"
wire_api = "chat_completions"
[agents.canalapi]
model_provider = "custom.canalapi"Keep generated risk, memory and runtime settings and the agent's remaining fields. Update existing tables rather than adding duplicate TOML headers.
custom is the provider type; canalapi is your alias. Use lowercase letters, digits and single underscores, not hyphens. The agent reference must match custom.canalapi. wire_api = "chat_completions" selects chat; do not copy another tool's openai-completions value here.
For environment credentials, omit a plaintext TOML key. PowerShell:
$env:ZEROCLAW_providers__models__custom__canalapi__api_key = "YOUR_CANALAPI_KEY"macOS / Linux:
export ZEROCLAW_providers__models__custom__canalapi__api_key='YOUR_CANALAPI_KEY'This exact V3 mapping overrides the credential at startup. Replace the placeholder and start the agent in the same terminal. OPENAI_API_KEY or CANALAPI_API_KEY alone does not replace this setting. Environment values override disk values for that process; background services need their own environment.
3. Verify and recover
zeroclaw agent -a canalapiAsk “Reply only OK; do not call tools”, check usage logs, then summarize a fictional README in a test directory. Startup GET /models warmup does not verify inference; upstream even permits some non-success responses during warmup.
- Unknown fields: verify the installed version and V3 schema. Back up older configurations and follow upstream migration guidance.
- Missing agent, policy or memory: finish all required Quickstart steps. The fragment alone cannot initialize an instance.
- Credential edits ignored: check
ZEROCLAW_...overrides, service environment and actual aliases. - Undo: select the old agent/model reference, restore the backup and restart your own process. Preserve the data directory.
Sources: custom providers, configuration, Quickstart steps, environment variables. See agent guidance.