社区上传

Tmp Publish Compare

作者 @openclaw-rocks

Discovery-backed OpenClaw package for openclaw-rocks/openclaw-config.

OpenClaw Config

Optimized workspace template for OpenClaw pro instances, powered by Fuel.

Clone this repo, add your Fuel virtual key, and you have a production-ready workspace with optimized inference, context management, and cost controls. No config to figure out.

This template combines best practices from the OpenClaw Token Optimization Guide by @mattganzak and the OpenClaw Runbook by @digitalknk. The key difference: this config uses Fuel as the model provider, so you get semantic role routing (worker/reasoning/heartbeat) with automatic cheapest-provider selection instead of managing provider keys and model IDs directly.

Quick Start

# 1. Clone the template
git clone https://github.com/openclaw-rocks/openclaw-config.git my-workspace
cd my-workspace

# 2. Replace the placeholder with your Fuel virtual key
#    Get one at https://openclaw.rocks/fuel
sed -i '' 's/<YOUR_FUEL_VK>/vk-your-key-here/' openclaw.json

# 3. Customize your agent
#    Edit SOUL.md (personality), USER.md (your context)

# 4. Set this directory as your instance workspace
#    In your OpenClaw dashboard, create or edit an instance and
#    set the workspace path to this directory. OpenClaw reads
#    openclaw.json, SOUL.md, USER.md, and AGENTS.md on startup.

What's in each file

FilePurpose
openclaw.jsonMain config: Fuel models, concurrency limits, context pruning, compaction, caching
SOUL.mdAgent personality and principles (template, customize this)
USER.mdYour context: name, timezone, mission (template, customize this)
AGENTS.mdShared agent instructions: session initialization, memory rules, 402 handling
HEARTBEAT.mdHeartbeat check definitions (system health, task status)
memory/Memory directory for compaction flush (auto-populated)
.gitignoreIgnores sessions, logs, credentials

What this config saves you

OptimizationWhat it doesEstimated savings
Multi-provider routingRoutes each role to the cheapest provider35-75% on inference costs
Context pruning (cache-ttl)Prunes stale messages after 6h30-50% fewer input tokens on long sessions
Session initializationLoads 8KB instead of 50KB on session start80% fewer tokens per session start
Compaction at 40kDistills context, flushes to memory filesPrevents runaway context that can 5-10x costs
Prompt caching90% discount on stable system prompts~$0.01/session instead of ~$0.10
Cheap heartbeats (1h interval)Dedicated low-cost heartbeat role~24 calls/day at near-zero cost
Automatic failoverWorker -> reasoning -> fallback providersAgent doesn't die on provider errors
Concurrency limits (4/8)Caps parallel callsPrevents retry loop cost explosions
Budget controls (Fuel VK)Hard spending limitAgent physically can't overspend

Typical result: An autonomous agent running 8+ hours/day costs $0.30-1.00/day with Fuel vs $3-5/day with default config.

How Fuel works

Your agent asks for worker, reasoning, or heartbeat. Fuel resolves that to the best real model at the cheapest provider and rewrites both request and response. Your agent never sees a provider-specific model ID.

RoleCost (per M tokens)Use case
fuel/worker~$0.67 input / ~$2.02 outputRoutine coding, subagents, file operations
fuel/reasoning~$0.72 input / ~$3.60 outputArchitecture, complex reasoning, research
fuel/heartbeat~$0.06 input / ~$0.24 outputHeartbeats, status checks

Costs are approximate. We continuously optimize which providers and models back each role. Current model details are always visible at openclaw.rocks/fuel.

Region filtering

By default, Fuel routes to the best model globally. If you have data sovereignty or compliance requirements, change the baseUrl in openclaw.json:

https://inference.openclaw.rocks/v1              # Default: best globally
https://inference.openclaw.rocks/v1/~eu-eu       # GDPR: EU origin + EU providers
https://inference.openclaw.rocks/v1/~all-us      # Any origin, US providers only
https://inference.openclaw.rocks/v1/~us-us       # US origin + US providers

Two dimensions:

  • Provider region (after the -): Where the API is physically hosted. eu = data only goes to EU-hosted APIs.
  • Model origin (before the -): Where the model company is based. eu = only models from EU companies.

Every region filter has full role coverage, no gaps:

FilterWorkerReasoningHeartbeat
~all-all (default)DeepSeek V3.1 @ FireworksKimi K2.5 @ FireworksGPT-OSS 20B @ Fireworks
~all-usDeepSeek V3.1 @ FireworksKimi K2.5 @ FireworksGPT-OSS 20B @ Fireworks
~us-usLlama 4 Maverick @ Together AIgpt-oss-120b @ Together AIGPT-OSS 20B @ Fireworks
~eu-euDevstral 2 (123B) @ MistralMagistral Medium @ MistralMistral Small 3.2 @ OVHcloud

Troubleshooting

ProblemFix
401 UnauthorizedCheck your virtual key in openclaw.json. It should start with vk-.
402 Budget ExceededCredits exhausted. Top up at openclaw.rocks/fuel.
429 Too Many RequestsHit rate limits. Wait a moment or check concurrency settings.
Agent not using FuelVerify model IDs start with fuel/ in your config.
Context growing too fastVerify contextPruning is set in openclaw.json. Check AGENTS.md session init rules.
Still loading full historySession init rules missing from agent prompt. See AGENTS.md.
Heartbeats too expensiveVerify heartbeat.model points to fuel/heartbeat.

Credits

This template builds on the work of:

Links

License

MIT

Workspace

这里展示的是当前已发布快照。新的发布会覆盖这个视图。

下载 .zip
9 文件数更新时间 2026/03/10 05:05:52 UTC2 个已拦截
发布方式 backfill-null-source-repo-v1
AGENTS.mdtext · 969 B

源码仓库

这个配置对应的原始 GitHub 仓库。

社区

还没有评论。