Cacheforge Setup
Set up CacheForge — register, configure upstream, get your API key in 30 seconds.
- Rating
- 4.2 (264 reviews)
- Downloads
- 601 downloads
- Version
- 1.0.0
Overview
Set up CacheForge — register, configure upstream, get your API key in 30 seconds.
Complete Documentation
View Source →
When to use this skill
Use this skill when the user wants to:
- Set up CacheForge for the first time
- Register a new CacheForge account
- Connect their LLM API provider to CacheForge
- Get a CacheForge API key
Setup Flow
- Detect existing API keys — Check for
OPENAI_API_KEY,OPENROUTER_API_KEY,ANTHROPIC_API_KEYin the environment - Collect credentials — Ask user for email and password if not provided
- Auto-detect provider — Infer upstream kind from key prefix:
sk-or-→ openroutersk-ant-→ anthropicsk-→ custom (OpenAI-compatible; legacyopenaialias still accepted)- Preset default base URLs:
- openrouter →
https://openrouter.ai/api/v1 - anthropic →
https://api.anthropic.com - custom →
https://api.fireworks.ai/inference/v1 - Provision — Run
python3 setup.py provisionto register/authenticate and get a CacheForge API key - If registration mode is invite-only, pass
--invite-code(or setCACHEFORGE_INVITE_CODE). - If email verification is enabled, complete verification and rerun
provisionto mint the tenant API key. - Validate — Run
python3 setup.py validateto make a test request through the proxy - Configure OpenClaw (recommended) — Print the exact OpenClaw snippet and (with approval) apply it to
~/.openclaw/openclaw.json - Print:
python3 setup.py openclaw-snippet - Apply:
python3 setup.py openclaw-apply --set-default - If upstream is OpenRouter, the snippet registers multiple popular models so users can switch in
/modelimmediately. - Fund credits — Before first proxy traffic, top up at least
$10via Stripe or crypto: python3 skills/cacheforge-ops/ops.py topup --amount 10 --method stripepython3 skills/cacheforge-ops/ops.py topup --amount 10 --method crypto
- Vault Mode virtualizes tool outputs only when the request advertises a fetch-capable tool definition (
web_fetchorbrowser). - Without a fetch tool definition, CacheForge fail-opens with reason
no_fetch_tool.
Commands
# Full setup (interactive)
python3 skills/cacheforge-setup/setup.py provision \
--email [email protected] \
--password "..." \
--invite-code "..." \
--upstream-kind custom \
--upstream-base-url https://api.fireworks.ai/inference/v1 \
--upstream-key fw_...
# Just validate an existing setup
python3 skills/cacheforge-setup/setup.py validate \
--base-url https://app.anvil-ai.io \
--api-key cf_...
# Print the OpenClaw snippet (same structure as the CacheForge console)
python3 skills/cacheforge-setup/setup.py openclaw-snippet \
--base-url https://app.anvil-ai.io \
--api-key cf_...
# Apply CacheForge provider config into OpenClaw (JSON5-safe; prompts for approval)
python3 skills/cacheforge-setup/setup.py openclaw-apply \
--base-url https://app.anvil-ai.io \
--api-key cf_... \
--set-default
Environment Variables
CACHEFORGE_BASE_URL— CacheForge API base (default: https://app.anvil-ai.io)CACHEFORGE_API_KEY— Existing API key (skip provisioning if set)CACHEFORGE_INVITE_CODE— Invite code (required on invite-only deployments)OPENAI_API_KEY,OPENROUTER_API_KEY,ANTHROPIC_API_KEY,FIREWORKS_API_KEY— Auto-detected for upstreamUPSTREAM_BASE_URL— Optional override forprovisionupstream base URL
After Setup
Once provisioned, set:
export OPENAI_BASE_URL=https://app.anvil-ai.io/v1
export OPENAI_API_KEY=cf_... # your CacheForge tenant API key
All OpenAI-compatible tools (OpenClaw, Claude Code, Cursor, any agent framework) will route through CacheForge automatically.
If you prefer the OpenClaw-native provider approach (recommended), keep secrets out of openclaw.json and set:
export CACHEFORGE_API_KEY=cf_...
API Contract (current)
This skill uses:
POST /api/provisionGET /v1/account/info
Installation
openclaw install cacheforge-setup
💻Code Examples
--set-default
## Environment Variables
- `CACHEFORGE_BASE_URL` — CacheForge API base (default: https://app.anvil-ai.io)
- `CACHEFORGE_API_KEY` — Existing API key (skip provisioning if set)
- `CACHEFORGE_INVITE_CODE` — Invite code (required on invite-only deployments)
- `OPENAI_API_KEY`, `OPENROUTER_API_KEY`, `ANTHROPIC_API_KEY`, `FIREWORKS_API_KEY` — Auto-detected for upstream
- `UPSTREAM_BASE_URL` — Optional override for `provision` upstream base URL
## After Setup
Once provisioned, set:export OPENAI_API_KEY=cf_... # your CacheForge tenant API key
All OpenAI-compatible tools (OpenClaw, Claude Code, Cursor, any agent framework) will route through CacheForge automatically.
If you prefer the OpenClaw-native provider approach (recommended), keep secrets out of `openclaw.json` and set:# Full setup (interactive)
python3 skills/cacheforge-setup/setup.py provision \
--email [email protected] \
--password "..." \
--invite-code "..." \
--upstream-kind custom \
--upstream-base-url https://api.fireworks.ai/inference/v1 \
--upstream-key fw_...
# Just validate an existing setup
python3 skills/cacheforge-setup/setup.py validate \
--base-url https://app.anvil-ai.io \
--api-key cf_...
# Print the OpenClaw snippet (same structure as the CacheForge console)
python3 skills/cacheforge-setup/setup.py openclaw-snippet \
--base-url https://app.anvil-ai.io \
--api-key cf_...
# Apply CacheForge provider config into OpenClaw (JSON5-safe; prompts for approval)
python3 skills/cacheforge-setup/setup.py openclaw-apply \
--base-url https://app.anvil-ai.io \
--api-key cf_... \
--set-defaultTags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.