Your AI coding tools, accounts and local API in one desktop app.
Switch providers for Claude Code, Codex, Hermes and OpenCode, manage Cursor accounts, and track local token usage. 1.0.2 adds Experiential Labs, multiple models per provider and refreshed provider presets, alongside the managed ChatGPT/Grok API pool introduced in 1.0.0.
Download · What's new · API guide · Build from source
The 1.0.0 API workspace. Captured from the current UI's browser preview with demo accounts; no real credentials or live account activity are shown.
API support in 1.0.0: ChatGPT coding support is experimental. See API compatibility and the validation record for tested behavior and outstanding live-account and clean-machine checks.
- Experiential Labs: choose the preset in any provider tab. Claude Code uses the Anthropic Messages endpoint and
x-api-key; Codex uses Responses, while Hermes and OpenCode use OpenAI-compatible chat. - Multiple models: open Advanced options, add model IDs manually or from Load models, remove individual models and choose the default. Claude Code 2.1.242+ receives additional
/modelpicker entries; Hermes and OpenCode receive native model lists. Codex saves the list with the profile and uses the selected default. Claude Desktop remains preview-only. - Provider presets: Custom and the official API appear first. Refuseless uses its red infinity favicon in both presets and saved provider rows.
See configuration for model-list behavior and Experiential Labs setup for gateway details.
- Refuseless: choose the Refuseless preset under + Add provider in Claude Code, Claude Desktop, Codex, Hermes or OpenCode.
- Live model catalogue: enter your key, open Advanced options → Load models, search the complete catalogue and select a model. Claude also offers a small/fast model selection. Compatible providers can use the same discovery flow; manual model IDs remain supported.
- Current 1.0 features: the API pool, managed runtimes and session-validation improvements remain included. This release supersedes the separate 0.9.1 maintenance build.
For Claude Code, the preset uses https://api.refuseless.com and bearer authentication. Codex, Hermes and OpenCode use https://api.refuseless.com/v1 with their respective Responses/chat protocols. See validation and API examples.
- One local API: ChatGPT cookie sessions and Grok device OAuth accounts behind
http://127.0.0.1:8318/v1, protected by a single client key. - Managed components: install the pinned browser and API engines from the app. Each account has its own profile, session checks and recovery controls.
- Account routing: ready accounts serve requests automatically; expired sessions and quota cooldowns are tracked separately.
- Client profiles: create a provider for Hermes, OpenCode or Codex from the API tab, then activate it in the corresponding app tab. Compatibility varies by client.
- API activity: inspect request counts, errors, latency and reported tokens. Prompt and response contents are not stored in the activity database.
- Windows tray: keep the gateway running when the window closes; reopen, start/stop the API or quit from the tray.
- Download the Windows ZIP from the latest published release.
- Extract it to a folder you can write to, outside
Program Files, so in-app updates can replace the app. - Run U-Pool.exe. The packaged application does not require a separate Python, Node.js or Docker installation.
- Choose a tool tab to add or switch a provider, or open API to set up the new account pool.
Provider configuration, the Cursor pool and local usage are available from source across platforms. The managed API pool requires Windows x64. Registry integration, launch at sign-in, the tray and in-app updates are Windows-only.
| Workspace | What it does |
|---|---|
| Claude Code | Switch endpoints, keys, models and supported permission options |
| Codex | Manage providers, authentication, model selection and approval/sandbox settings |
| Hermes | Configure providers, transport and models in its YAML configuration |
| OpenCode | Configure provider endpoints, SDK adapters and models |
| Claude Desktop | Save and test provider profiles; configuration writing is still preview-only |
| Cursor | Keep account sessions, inspect plan/usage and activate eligible desktop sessions |
| API | Pool ChatGPT and Grok accounts behind a local gateway |
| Usage | Read Claude Code and Codex transcripts for daily, model and project token/cost summaries |
Provider tabs include presets for official APIs and compatible services, endpoint reachability checks, and an official mode that clears U-Pool's managed overrides. A switch changes the configuration fields U-Pool owns; unrelated settings are preserved. Writes are atomic and backups are enabled by default.
Usage prices are estimates and can be edited in Settings → Pricing. Models without prices still show tokens. The saved usage snapshot survives deletion of transcripts it has already read.
Choose an app, add a preset or custom provider, enter its endpoint/key/model, and select the provider to activate it. On Windows, U-Pool also updates the environment variables used by Claude Code and Codex. Restart an already-open client or terminal to pick up environment changes.
Import cookies or keep the session from an account already signed into Cursor. Cards show identity, plan, usage and session status. Browser cookies can display account usage but cannot activate the desktop app; switching requires a desktop session token. U-Pool closes a running Cursor before changing its authentication records and reopens it afterwards.
Live switching between two different Cursor accounts remains unverified. Read the Cursor notes and backup behavior before using this workflow.
- Open API → Install components and wait for the managed runtimes.
- Choose Import cookies for ChatGPT or Connect account for Grok. Wait until the account is verified and its models are available.
- Select Start API. Copy the endpoint, gateway key and an available model ID.
- Use them in a compatible client, or select an application/model under Connect an app and create its provider profile.
| Client setting | Value |
|---|---|
| Base URL | http://127.0.0.1:8318/v1 by default |
| API key | Copy the gateway key from the API tab |
| Model | Copy an available chatgpt/... or grok/... identifier from the pool |
| Endpoints | GET /v1/models, POST /v1/chat/completions, POST /v1/responses |
Closing the window leaves U-Pool in the Windows tray. Use the tray's Quit action to stop the application and its managed processes.
- ChatGPT tools are experimental. Web responses are adapted into validated tool calls; the gateway does not execute those tools. SSE is supported, but a completed answer may arrive as one content chunk.
- Responses is stateless. Clients must send the full conversation. Stateful responses, built-in tools, multimodal input and WebSocket transport are outside v1.
- Codex CLI 0.161.0 is currently incompatible with the gateway's strict Responses contract. Creating its profile does not establish working generation. This limitation concerns the managed API, not ordinary Codex provider switching.
- Live acceptance is incomplete. ChatGPT SDK/tool-call checks passed; coding-client acceptance, real Grok generation, live multi-account routing and clean-machine validation remain pending.
See the API setup guide for supported controls, Hermes settings, session recovery and a request example. The validation record separates tested behavior from remaining release checks.
On Windows 10/11 x64, download and extract the source ZIP or clone this repository, then double-click install.bat in the source folder and accept the administrator prompt. Internet access is required.
The installer checks Python and Node.js, installs missing or incompatible versions
through WinGet or official installers, and updates npm to the latest release
compatible with Node.js. It creates or reuses .venv, installs the Python
dependencies, runs npm ci and the UI build, verifies the installation, and starts
U-Pool. You do not need to install Python, Node.js or npm beforehand.
If a step fails, the installer stops and shows the error. Logs are saved in
build/install-logs. Run install.bat again to retry installation and rebuild.
To start the app later without reinstalling, run this from the source folder:
.venv\Scripts\python.exe -m upoolThe API pool's additional components still require the preparation step below.
For the development and packaging commands below, activate the environment with
.\.venv\Scripts\Activate.ps1 or use .venv\Scripts\python.exe instead of python.
The installer does not install the optional developer dependencies; add them with
.venv\Scripts\python.exe -m pip install -e ".[dev]" if needed.
Requires Python 3.11+ and Node.js 20.9+ for the UI build.
git clone https://github.com/U-C4N/U-Pool.git
cd U-Pool
python -m pip install -e ".[dev]"
npm --prefix ui ci
npm --prefix ui run build
python -m upoolpython -m upool --version prints the version; --debug opens the webview developer tools. Source users also need python scripts/prepare_proxy_runtimes.py before installing the API components.
Develop and test
Run the UI in one terminal:
npm --prefix ui run devOpen the local URL printed by Next.js for an in-memory browser preview, or connect the desktop shell from a second terminal:
$env:UPOOL_DEV_URL = "http://localhost:3000"
python -m upoolRun the checks:
python -m pytest --basetemp=.pytest-tmp -p no:cacheprovider
npm --prefix ui run typecheck
npm --prefix ui run buildTests redirect app state, configuration targets and registry writes into a sandbox. For manual backend probes, use python scripts/sandbox.py your_probe.py; running write paths directly can change your real coding-tool configuration. See CLAUDE.md.
Build the Windows x64 package
python scripts/build.py
# Reuse an existing UI export and checksum-verified API worker:
python scripts/build.py --skip-ui --reuse-proxy-workerOutputs: dist/U-Pool/U-Pool.exe, dist/U-Pool-1.0.2-win64.zip and dist/SHA256SUMS.txt. The build prepares an isolated API worker, includes license notices, and smoke-tests the executable. Browser/engine downloads use pinned versions and verified hashes.
Review the outstanding validation and document any remaining limitations when publishing. Attach the ZIP and checksum file to a GitHub release tagged vX.Y.Z for the in-app updater.
| Guide | Contents |
|---|---|
| 1.0.1 validation and Refuseless | Release checks, model discovery and API examples |
| API setup and limits | Account setup, requests, client compatibility, recovery and live validation |
| Configuration and account switching | Files and registry keys, backups, Cursor behavior and per-app details |
| 1.0.0 validation | Automated checks, packaged tests and outstanding validation |
| Design notes | Feature designs and implementation context |
| Third-party notices | Managed components and dependency provenance |
Built with Python + pywebview, Next.js + React + Tailwind, and PyInstaller. The UI is exported as static files inside a native OS webview; no Electron or Node.js runtime is needed in the packaged app. U-Pool keeps its own state under ~/.u-pool, with API data in proxy/ and managed components in runtimes/. Credential/session files contain secrets; keep this directory private.
This repository does not currently declare a project license. Third-party component notices are listed separately.
Created by @UEdizaslan. Report problems or suggest improvements through GitHub issues.