Files
hx/README.md
T
hermes da9d5d1ae0
ci / check (push) Canceled after 0s
Subscription OAuth providers (Claude, Codex) + hx -p
- auth: PKCE login, localhost callback or pasted redirect, refresh, ~/.hx/auth.json 0600, import Claude Code / Codex CLI logins
- anthropic: Messages SSE with Claude Code identity, beta headers, tool-name mapping
- codex: Responses SSE on chatgpt.com/backend-api/codex, store=false, encrypted reasoning replay
- cli: hx login|logout <claude|codex>, hx -p

Closes #3, closes #4, closes #5
2026-09-30 09:30:58 +00:00

17 lines
596 B
Markdown

# hx
Minimal Rust coding agent. Uses your existing subscriptions, no API keys.
```sh
cargo build --release
hx login claude # Claude Pro/Max
hx login codex # ChatGPT Plus/Pro
hx -p "hello" # Claude
hx --provider codex -p "hello" # Codex
```
Existing Claude Code (`~/.claude/.credentials.json`) and Codex CLI (`~/.codex/auth.json`) logins are picked up automatically.
Credentials are stored in `~/.hx/auth.json` (mode 0600) and refreshed automatically.
On a headless box, open the printed URL elsewhere and paste the final redirect URL back into the terminal.