Subscription OAuth providers (Claude, Codex) + hx -p
ci / check (push) Canceled after 0s

- 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
This commit is contained in:
hermes committed 2026-09-30 09:30:58 +00:00
1 parent e16e33ed2d
commit da9d5d1ae0
9 files changed
+3101 -6

No files matched your search

+14
View File
@@ -1,2 +1,16 @@
# 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.