Configuration
Environment variables
GHOSTPWN_PROVIDER: optional startup provider override (anthropic|openai|google|copilot|codex|ollama)GHOSTPWN_MODEL: optional startup model override for the selected providerGHOSTPWN_WORKSPACE: optional root path used as the filesystem-tool boundary and command working directoryGHOSTPWN_SKILLS_DIR: optional directory for local skills; defaults toskillsGHOSTPWN_STATE_FILE: optional local state-file override
Provider keys
ANTHROPIC_API_KEYOPENAI_API_KEYGOOGLE_GENERATIVE_AI_API_KEYGITHUB_COPILOT_TOKENCODEX_OAUTH_TOKEN(serialized Codex OAuth credentials; normally managed by/model)
API keys are loaded from environment first, then OS keychain entries under service ghostpwn-rust, then the local state-file fallback.
State and persistence
- Local state fallback defaults to
%APPDATA%\ghostpwn\state.jsonon Windows,$XDG_CONFIG_HOME/ghostpwn/state.jsonon Unix/macOS, then the user's home config path - The latest provider/model selection is stored as
latest_providerandlatest_modelin the OS keychain and local state file - Ollama uses
http://localhost:11434and does not require an API key