DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Underclass: what you can do with it

What is Underclass? underclass is a local Rust proxy that pools multiple ChatGPT/Codex, GitHub Copilot, and Claude Code subscriptions behind one OpenAI-compatible and Anthropic-compatible endpoint.

How do I use it? Clone the repo and, from its root, run UNDERCLASS_PROXY_KEY="$(openssl rand -hex 32)" UNDERCLASS_UI_TOKEN="$(openssl rand -hex 32)" cargo run -- serve and keep the generated values in a password manager; then open http://127.0.0.1:8080/ in a browser, paste the value you set as UNDERCLASS_UI_TOKEN, click Add account, and sign in to each ChatGPT/Codex or Copilot subscription you want in the pool. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

4 use cases

  • Point opencode at a pool of coding subscriptions

    Run one local endpoint that spreads opencode requests across several Codex or Copilot accounts.

    View prompt
    In the underclass repo at <repo path>, start the server with the proxy key and UI token set as environment variables, run `cargo run -- connect`, then run one opencode prompt against the underclass provider. Expected output: a completed response and a usage row in the admin page for <account label>. Verify that the admin page lists the account as healthy after the request.
  • Route Claude Code through a pool of Claude subscriptions

    Point the official Claude Code client at a local proxy that rotates across several Claude Code accounts.

    View prompt
    In the underclass repo at <repo path>, start the server, export ANTHROPIC_BASE_URL and CLAUDE_CODE_OAUTH_TOKEN as the README describes, and run one short Claude Code task. Expected output: a completed task and a request row for a Claude Code account in the admin page. Verify that the account's plan and its 5-hour, 7-day, and model-scoped windows are shown.
  • Watch pool quota, cooldowns, and plans in real time

    Open a live terminal monitor that shows in-flight requests, account states, and quota windows.

    View prompt
    In the underclass repo at <repo path>, with the server running, start `underclass top` and capture the account table. Expected output: one row per configured account with a status label and plan. Verify that each cooling account shows a reset time and that the PLAN column is filled or marked unknown.
  • Audit token use and stream failures over the last week

    Summarize requests, tokens, and failed streams per model or account from the local database.

    View prompt
    In the underclass repo at <repo path>, with the server running, run `underclass stats --since 7d --by model` and save the output. Expected output: a UTC table with requests, tokens in and out, and event columns. Verify that the totals match the sum of the per-model rows.

Quick start with Underclass

  1. Check you have what it needs: Rust toolchain with cargo, to run `cargo run -- serve` from the repo; openssl available on the machine, to generate the proxy key and UI token; At least one ChatGPT/Codex, GitHub Copilot, or Claude Code subscription you are entitled to use.
  2. Open ghuntley/underclass on GitHub and read the README and license.
  3. Clone the repo and, from its root, run UNDERCLASS_PROXY_KEY="$(openssl rand -hex 32)" UNDERCLASS_UI_TOKEN="$(openssl rand -hex 32)" cargo run -- serve and keep the generated values in a password manager. (inferred, check the README)
  4. Open http://127.0.0.1:8080/ in a browser, paste the value you set as UNDERCLASS_UI_TOKEN, click Add account, and sign in to each ChatGPT/Codex or Copilot subscription you want in the pool.
  5. In a second terminal, run cargo run -- connect to write the provider block into your global opencode config.
  6. Run opencode --provider underclass --model underclass/gpt-5.5 and send a prompt.

These steps come from our top use case, Point opencode at a pool of coding subscriptions, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ghuntley/underclass

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Software and DevOps

About this repo

  • Who it is forDevelopers who already hold several personal AI coding subscriptions and want one local endpoint that their coding clients can use.
  • Why it is hot295 stars, launched 50 days ago
  • LanguageRust
  • Sourcegithub.com/ghuntley/underclass · Back to Hot repos

Requirements

  • Rust toolchain with cargo, to run `cargo run -- serve` from the repo
  • openssl available on the machine, to generate the proxy key and UI token
  • At least one ChatGPT/Codex, GitHub Copilot, or Claude Code subscription you are entitled to use
  • opencode installed if you want to use the OpenAI-compatible path from that client
  • Read each provider's terms before pooling accounts; the README does not address this

Add this badge to your README

Maintain Underclass? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/ghuntley/underclass.svg)](https://dedupedai.com/use-cases/ghuntley-underclass/?utm_source=github&utm_medium=badge&utm_campaign=ghuntley-underclass)

HTML

<a href="https://dedupedai.com/use-cases/ghuntley-underclass/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=ghuntley-underclass"><img src="https://dedupedai.com/badge/ghuntley/underclass.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Underclass

What is Underclass?

underclass is a local Rust proxy that pools multiple ChatGPT/Codex, GitHub Copilot, and Claude Code subscriptions behind one OpenAI-compatible and Anthropic-compatible endpoint. It is an open-source project on GitHub: https://github.com/ghuntley/underclass.

How do I use Underclass?

Clone the repo and, from its root, run UNDERCLASS_PROXY_KEY="$(openssl rand -hex 32)" UNDERCLASS_UI_TOKEN="$(openssl rand -hex 32)" cargo run -- serve and keep the generated values in a password manager; then open http://127.0.0.1:8080/ in a browser, paste the value you set as UNDERCLASS_UI_TOKEN, click Add account, and sign in to each ChatGPT/Codex or Copilot subscription you want in the pool. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Underclass for?

Developers who already hold several personal AI coding subscriptions and want one local endpoint that their coding clients can use.

What can I do with Underclass?

4 use cases so far, for example: Point opencode at a pool of coding subscriptions; Route Claude Code through a pool of Claude subscriptions; Watch pool quota, cooldowns, and plans in real time. Each has steps and a copy-paste agent prompt.

What do I need to run Underclass?

Rust toolchain with cargo, to run `cargo run -- serve` from the repo; openssl available on the machine, to generate the proxy key and UI token; At least one ChatGPT/Codex, GitHub Copilot, or Claude Code subscription you are entitled to use; opencode installed if you want to use the OpenAI-compatible path from that client.

What are alternatives to Underclass?

Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.

Is Underclass safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.