--- name: hermes-termux-setup description: "Hermes AI agent configuration on Android Termux, currently using kimi-coding provider" metadata: node_type: memory type: project originSessionId: a0bf5811-73e6-4c69-beeb-9a2867ab56bf --- **Why**: User runs Hermes as primary AI agent on Android Termux. Initially attempted switching to Claude (anthropic provider) using CLAUDE_CODE_OAUTH_TOKEN, but the OAuth token was incompatible with Hermes' anthropic provider (which uses `x-api-key` header). Reverted to kimi-coding. **Current Config** (`~/.hermes/config.yaml`): ```yaml model: default: kimi-for-coding provider: kimi-coding base_url: https://api.kimi.com/coding providers: kimi: name: kimi base_url: https://api.kimi.com/coding/ api_key: sk-kimi-VX9okzPdM8ToM8QYNgxDMjgWnNDilGPhxQzZcdfz6Xwn62aaWQEHNdM1pHbNC6lk api_mode: chat_completions ``` **Critical Gotcha**: `.bashrc` previously contained `ANTHROPIC_BASE_URL=https://api.kimi.com/coding/` which overrode Hermes' anthropic provider base_url and caused 401 errors when testing Claude. **Must clean `.bashrc` of ANTHROPIC_* env vars before switching providers.** **Env vars** (in `~/.hermes/.env` and `~/.profile`): - `CLAUDE_CODE_OAUTH_TOKEN` — retained for claude-run usage, but Hermes does not use it **Hermes binary**: `/data/data/com.termux/files/usr/bin/hermes` (bash wrapper script) - Sources `~/.profile` - Runs `python hermes` from `~/hermes-agent/` **Hermes home**: `/data/data/com.termux/files/home/.hermes/` - Config: `config.yaml` - History: `.hermes_history` - State DB: `state.db`