llm-liberty
v0.7.0
Published
Free your LLM subscription — extract OAuth tokens from provider CLIs (OpenAI, Anthropic, Gemini, Copilot, …) for use in your own apps.
Downloads
641
Readme
LLM Liberty
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.
Quick start
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.
Supported providers
- 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
Documentation
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
Status
Early development. Expect breakage.
License
MIT — see LICENSE.
Sister project
@bodhiapp/llm-liberty is a sibling of Bodhi App — same mission (democratize access to LLMs), independent codebase.
