Claude GPT
Hand heavy work from Claude Desktop to OpenAI's frontier models and get the result back in the same chat.
Persistent sessions, real file attachments, background jobs that survive restarts, a live dashboard, and cost tracking.
Claude stays in charge. It holds your files, skills and memory, decides what needs heavy lifting, hands that work to GPT-6 Astra (or GPT-5.6 Sol) with the right brief and attachments, and relays the answer. You say things like:
"Hand ~/Downloads/board-pack.pdf to ChatGPT and ask it for a summary with the key figures."
"Give the deck and the brand guidelines to ChatGPT and have it rewrite the narrative."
"Is ChatGPT done?"
Claude calls the bridge's tools; the model works in the background on OpenAI's side; short answers come straight back into the chat, long ones land on disk with a preview, and charts appear as images.
Why
- Overflow. When Claude credits run low on a heavy day, the same chat can delegate to another frontier model without copy-pasting between apps.
- Cheap orchestrator, expensive engine. Run a lighter Claude model for the conversation and still get frontier-quality output on the delegated parts.
- Whole documents, not pasted text. Decks, spreadsheets, PDFs and images reach the model as files. The tools refuse pasted contents, so nothing gets lost in extraction.
- No timeouts, no lost work. Every tool call returns in seconds. Jobs run on OpenAI's side in background mode with a stored cursor, so a restart of Claude Desktop, or of your Mac, resumes rather than restarts.
- Watch it think. The dashboard streams reasoning summaries, web searches, code execution and output as they happen.
Quick start
macOS only for now. You need uv, an OpenAI API key (a project key with a monthly budget is wise) and, for pptx and docx attachments, LibreOffice.
uv tool install claude-gpt # from PyPI (pipx install claude-gpt works too)
claude-gpt set-key # prompts for the key; stored privately, never echoed
claude-gpt setup --register # checks the key and LibreOffice, registers in Claude Desktop
Restart Claude Desktop and the seven chatgpt_* tools appear. Optional: brew install --cask libreoffice.
Upgrade later with uv tool upgrade claude-gpt. Working from a clone instead? uv sync then uv run claude-gpt setup --register. The design notes explain why registration points at the interpreter rather than uv run.
What you can do
| Ask Claude | What happens |
|---|---|
| "Hand this PDF to ChatGPT for a summary" | A session starts, the file is uploaded whole, the summary comes back inline |
| "Attach the 20,000-row workbook and ask for revenue by month with a chart" | The sheet is previewed as tables and uploaded for Python; the chart returns as an image and a file |
| "Research the Gulf basketball market with web search" | Searches stream on the dashboard; a 1,200-word briefing lands on disk with a preview |
| "Send the changed files back for a second look" | The same session continues with the earlier context cached |
| "Fork the session, focusing on pricing" | A summary seeds a fresh session and the old one is archived |
| "Cancel that" or "close the session" | Immediate, from Claude or from the dashboard |
Before the first call of a session Claude asks which reasoning level you want (low, medium, high, xhigh or max) and reports the level used in every reply. Change it on any turn.
Tools
Seven MCP tools, all returning within seconds, all answering with plain JSON that any Claude model can follow:
chatgpt_start creates a session with a brief and attachments · chatgpt_send sends a turn · chatgpt_status collects the result, waiting up to 45 seconds · chatgpt_list shows sessions, spend and the dashboard URL · chatgpt_fork carries a summary into a fresh session · chatgpt_cancel stops a job · chatgpt_close archives a session.
Attachments
| Type | What the model receives |
|---|---|
| The file itself | |
| pptx, docx | Converted to PDF with LibreOffice, plus the speaker notes as text |
| xlsx, xlsm, csv, tsv | Each sheet as a capped Markdown table; over the cap, the whole file is uploaded for Python analysis |
| png, jpg, gif, webp, heic | Resized and sent inline as an image |
| md, txt, json, yaml, xml, html and source code | Sent as fenced text, truncated only past 200,000 characters |
Files are deduplicated by content hash across sessions, and the same file is never attached twice to one conversation. In a Cowork session, where Claude works inside a sandbox, upload paths such as /mnt/user-data/uploads/deck.pptx are matched to the copy on your Mac by name, and every response says which file was used.
Dashboard
http://127.0.0.1:8765 while the server runs. Home shows every session with status, turns and spend, plus today's and the last 30 days' totals. A session page lists its brief, attached files and jobs, with close and fork buttons. A job page streams the activity live and renders the result as Markdown when it finishes, with generated files and image previews. It recovers after a browser refresh mid-job.
Models, costs and budgets
GPT-6 Astra is the default; Sol, Terra and Luna are a model: "sol" away per session. Costs are computed per job from an editable price table (checked against OpenAI's pricing page on 4 September 2026), rolled up per session and per day, and shown in every status reply and on the dashboard. A session budget ($25) and a daily budget ($100) refuse new jobs when exceeded; Claude can override per call when you say so.
Configuration
Precedence: environment variables, then ~/.claude-gpt/config.toml, then a project .env, then defaults. The first run writes a private config.toml with every setting commented out; claude-gpt set-key fills in the key.
| Setting | Default | Purpose |
|---|---|---|
CLAUDE_GPT_MODEL |
astra |
Model alias or ID for new sessions |
CLAUDE_GPT_DEFAULT_REASONING_EFFORT |
high |
Default reasoning level |
CLAUDE_GPT_DEFAULT_WEB_SEARCH |
false |
Web search on by default |
CLAUDE_GPT_DEFAULT_CODE_INTERPRETER |
true |
Code interpreter on by default |
CLAUDE_GPT_INLINE_MAX_WORDS |
700 |
Longer results go to disk |
CLAUDE_GPT_SESSION_BUDGET_USD |
25 |
Per-session guardrail |
CLAUDE_GPT_DAILY_BUDGET_USD |
100 |
Daily guardrail across sessions |
CLAUDE_GPT_OUTPUT_ROOT |
~/ClaudeGPT |
Where results are written |
Every setting is listed in .env.example and config.example.toml.
Commands
| Command | What it does |
|---|---|
claude-gpt |
Serve MCP over stdio (what Claude Desktop launches) |
claude-gpt set-key [--from-env] |
Store the OpenAI API key privately |
claude-gpt setup [--register] |
Check the key online, check LibreOffice, register in Claude Desktop |
claude-gpt check-config |
Validate the configuration and show where each value came from |
claude-gpt purge-uploads |
Delete every cached OpenAI file upload |
claude-gpt prune --days 30 |
Delete old per-job event logs |
Security and privacy
- Attachments are uploaded to OpenAI under your API key and are subject to OpenAI's data policies; background mode stores response data on their side for a limited time.
- The key lives in
~/.claude-gpt/config.toml, readable only by your user, and is redacted from logs. The state directory and database are private to your user. - The dashboard binds to 127.0.0.1 only. File reads are confined to your home folder by default (
CLAUDE_GPT_ALLOWED_ROOTS), symlinks are resolved before the check, and the model gets no tool that acts on your Mac.
Under the hood
Python 3.12, the official MCP SDK over stdio, the OpenAI Responses API with Conversations for server-side state and background streaming with a resumable cursor, SQLite in WAL mode for the registry, JSONL event logs per job, and aiohttp for the dashboard. Two copies of the server can share one registry safely: Claude Desktop starts a second copy for its Cowork and Code sessions, so every state change is an atomic, conditional write and one active job per session is a database invariant. The design notes cover the reasoning, the recovery model and the verification history.
uv sync && uv run pytest # 102 tests, no network calls
Licence
MIT. Built by Karl Foster with Claude.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_gpt-0.1.1.tar.gz.
File metadata
- Download URL: claude_gpt-0.1.1.tar.gz
- Upload date:
- Size: 209.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9063fafdd57976c6f06778620cdccb968a68b4f9de4a7ef8f61d51dd165da297
|
|
| MD5 |
79b46a88fb4ae9e90931c19136565d9b
|
|
| BLAKE2b-256 |
0f4ab0b3208c6d1752307f31e208621ad3f7e065252b03ee2694319b35510079
|
Provenance
The following attestation bundles were made for claude_gpt-0.1.1.tar.gz:
Publisher:
publish.yml on karlfoster/claude-gpt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_gpt-0.1.1.tar.gz -
Subject digest:
9063fafdd57976c6f06778620cdccb968a68b4f9de4a7ef8f61d51dd165da297 - Sigstore transparency entry: 2736544129
- Sigstore integration time:
-
Permalink:
karlfoster/claude-gpt@853df3e49c7dd1dda3c5f99741bc9d51d09476c7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/karlfoster
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@853df3e49c7dd1dda3c5f99741bc9d51d09476c7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file claude_gpt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_gpt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 103.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cf322d7fd6e3fcb605056a9bfd54e7730945980f43533c9db0f6f227165813c
|
|
| MD5 |
09de622cc3834707b5867f2ef0e3079a
|
|
| BLAKE2b-256 |
9c098dc952def36d8c41552626acbc8c4ba77fd8b0266567e78b9de2c40e345b
|
Provenance
The following attestation bundles were made for claude_gpt-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on karlfoster/claude-gpt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_gpt-0.1.1-py3-none-any.whl -
Subject digest:
0cf322d7fd6e3fcb605056a9bfd54e7730945980f43533c9db0f6f227165813c - Sigstore transparency entry: 2736544699
- Sigstore integration time:
-
Permalink:
karlfoster/claude-gpt@853df3e49c7dd1dda3c5f99741bc9d51d09476c7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/karlfoster
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@853df3e49c7dd1dda3c5f99741bc9d51d09476c7 -
Trigger Event:
release
-
Statement type: