Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prism CLI

Connect LLM provider accounts and clients to Prism.

Install

brew install circlesac/tap/crcl circlesac/tap/prism

If crcl is already installed, Prism CLI can also be installed directly:

curl -fsSL https://github.com/circlesac/prism-cli/releases/latest/download/install.sh | sh

Sign in

crcl login

Usage

Show ChatGPT, Anthropic, and OpenCode Go usage together:

prism usage

Each provider is fetched independently, so an unavailable login does not hide usage from the other providers.

Anthropic

Register each Claude subscription account separately and show its current quota:

prism anthropic auth login
prism anthropic auth list
prism anthropic usage
prism anthropic auth remove <credential-id>

prism claude login is a short alias for prism anthropic auth login. The browser handles account selection, SSO, and MFA. Prism does not import the credential used by an existing Claude Code login.

This stores and refreshes Anthropic credentials for account and usage management, and prism claude forwards requests through a local bridge while keeping Claude Code’s existing OAuth/login mode.

prism anthropic auth remove deletes the Prism grant and its routing/usage state. Anthropic does not document a revocation endpoint for this grant, so the command does not claim provider-side revocation; use Anthropic account security settings when provider-side invalidation is required.

ChatGPT

prism chatgpt auth login
prism chatgpt auth list
prism chatgpt usage
prism chatgpt auth remove <credential-id>

Run prism chatgpt auth login again to add another ChatGPT account. Usage reset times are shown in the local timezone with the remaining time.

OpenCode Go

Show usage from an OpenCode login already present in Chrome, Chromium, Comet, Arc, Edge, Brave, or Firefox on macOS:

prism opencode-go usage

Prism reads the browser session only for this request. It does not save or print browser cookies. The output includes rolling, weekly, and monthly reset times and whether the current usage pace is likely to exhaust each limit.

Other providers

prism copilot auth login
prism gemini auth login

prism groq auth add --name personal
prism mistral auth add
prism gemini-ai auth add
prism deepseek auth add
prism opencode-go auth add
prism cloudflare auth add --provider-account-id <cloudflare-account-id>
prism vercel auth add --owner-id <vercel-owner-id>
prism gemini-app auth add

Use the same auth list and auth remove commands for each provider:

prism groq auth list
prism groq auth remove <credential-id>

Codex

Route Codex App and CLI tasks through Prism:

prism codex enable
prism codex status

prism codex enable selects gpt-5.6-sol, uses the model's default reasoning effort, and updates the shared user-level Codex configuration. Open a new Codex task after enabling it. The App and CLI then use the same Prism configuration, and the CLI can still be started normally:

codex

Verify the setup:

codex exec --ephemeral 'Do not use any tools. Reply with exactly PRISM_OK.'
prism chatgpt usage

Restore the Codex settings that were present before Prism was enabled:

prism codex disable

Prism only restores settings that still match what enable applied. If a managed setting was edited afterward, prism codex status reports drift and disable leaves the changed setting untouched.

Claude Code

Install Claude Code so that claude is available on PATH, then use the Claude Code interface and tools with any model supported by Prism:

prism claude --model gpt-5.6-sol

Use Claude Code's Ultracode dynamic workflow with GPT-5.6 Sol:

prism claude --model gpt-5.6-sol --effort ultracode

These examples use gpt-5.6-sol; replace it with another Prism-supported model when needed. prism claude launches the installed Claude Code CLI and passes its arguments through unchanged. Claude models use the registered Anthropic account pool automatically. To start a session on one account, pass its alias or redacted id before the Claude Code arguments:

prism claude --account work-admin --model claude-fable-5

Verify the setup:

prism claude --model gpt-5.6-sol --print --tools "" -- \
  'Do not use any tools. Reply with exactly PRISM_CLAUDE_MODEL_OK.'

A successful request ends with PRISM_CLAUDE_MODEL_OK. Run claude --help to see all Claude Code options.

About

Public Go CLI for Prism credential registration and account management

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages