Free your LLM subscription.
llm-liberty is a CLI that runs the OAuth flow used by official LLM provider CLIs (OpenAI, Anthropic, Google Gemini, GitHub Copilot, …) and prints the resulting access token, refresh token, and provider-specific request metadata as JSON — so you can use your existing subscription from any app you build, not just the vendor's CLI.
npx @bodhiapp/llm-liberty@latest login <provider>Opens your default browser to the provider's OAuth page, runs a local HTTP server to catch the redirect, exchanges the auth code for tokens, and prints everything you need to call the provider's API directly.
- Anthropic (Claude / Claude Code) — see
docs/anthropic.md - OpenAI Codex (ChatGPT / Codex CLI) — see
docs/openai-codex.md - Google Gemini (gemini-cli / Code Assist) — see
docs/google-gemini.md - Google Antigravity (IDE / unified gateway: Gemini + Claude + GPT-OSS) — see
docs/google-antigravity.md - GitHub Copilot — see
docs/github-copilot.md
Full docs live under docs/:
docs/output-contract.md— the stable JSON envelope everyloginrun emitsdocs/development.md— local dev workflow & adding a new providerdocs/security.md— what we do and don't do with tokens
Early development. Expect breakage.
MIT — see LICENSE.
@bodhiapp/llm-liberty is a sibling of Bodhi App — same mission (democratize access to LLMs), independent codebase.