Skip to content

Configuration Model ​

Where Configuration Lives ​

HostConfig FilePlugin Config
OpenClaw~/.openclaw/openclaw.jsonInside the host config
Codex~/.codex/tokenpilot.jsonSeparate plugin config file
Claude Code~/.claude/tokenpilot.jsonSeparate plugin config file
DeepSeek HarnessHarness profile's cordis.patch.ymltokenpilot-dsh config; setup and defaults
pi~/.pi/agent/tokenpilot.jsonSeparate plugin config file
OpenCode~/.config/opencode/tokenpilot.jsonSeparate plugin config file; recovery MCP entry in opencode.json

Environment Variables ​

Adapters use environment variables for non-default paths:

VariablePurposeHost
LIGHTRSI_OPENCLAW_HOMECustom OpenClaw home dirOpenClaw
OPENCLAW_CONFIG_PATHCustom config pathOpenClaw
CODEX_CONFIG_PATHCustom config.toml pathCodex
CODEX_HOOKS_CONFIG_PATHCustom hooks.json pathCodex
TOKENPILOT_CODEX_CONFIGCustom tokenpilot.json pathCodex
CLAUDE_CODE_SETTINGS_PATHCustom settings.json pathClaude Code
CLAUDE_CODE_MCP_CONFIG_PATHCustom .claude.json pathClaude Code
TOKENPILOT_CLAUDE_CODE_CONFIGCustom tokenpilot.json pathClaude Code
PI_CODING_AGENT_DIRCustom pi agent dirpi
TOKENPILOT_PI_CONFIGCustom tokenpilot.json pathpi
TOKENPILOT_OPENCODE_CONFIG_DIRCustom OpenCode config dirOpenCode
TOKENPILOT_OPENCODE_CONFIGCustom tokenpilot.json pathOpenCode

Next ​

Released under the MIT License.