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

Environment Variables

Adapters use environment variables for non-default paths:

VariablePurposeHost
LIGHTMEM2_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

Next

Released under the MIT License.