GPT Agent
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GPT AgentCheck the git status and show me uncommitted changes in this repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GPT Agent
GPT Agent is a local developer runtime for ChatGPT on Windows and macOS. It gives ChatGPT controlled access to your codebase, Git, terminal, language servers, debugger, SQLite tools, local HTTP services, adaptive project memory, reusable engineering skills, checkpoints, and audit logs. Windows can additionally use Windows Sandbox for the stronger gpt_agent_untrusted_run isolation backend.
Independent community project. Not an official OpenAI product and not affiliated with or endorsed by OpenAI.
What it is
GPT Agent is intentionally ChatGPT-only. It does not embed a second coding agent, model router, external coding harness, or model-provider gateway. ChatGPT remains the reasoning/agent loop; GPT Agent is the local execution layer.
The runtime exposes 83 MCP tools: 79 native tools plus 4 bounded async job tools. The current published v0.1.0 artifact is Windows-only; Apple Silicon macOS support is being prepared under [Unreleased].
Download the latest Windows release
Windows installation: docs/INSTALL-ONCE.md · macOS: docs/MACOS.md
Related MCP server: chatgpt-local-coding-agent
Architecture
ChatGPT
|
| OpenAI Tunnel
v
GPT Agent on 127.0.0.1:8765
|
+-- files / search / repo map
+-- Git / checkpoints / patching
+-- SAFE terminal / bounded FULL SHELL
+-- LSP / diagnostics / symbol navigation
+-- Python DAP debugger
+-- SQLite read-only inspection
+-- local HTTP requests
+-- memory / reusable coding skills
+-- audit chain / self-check
+-- platform lifecycle: Windows Scheduled Tasks / macOS launchd
+-- Windows Sandbox for isolated untrusted execution (Windows only)Browser automation is intentionally not included in v0.1.0. It will only be added when it has a complete independently distributable runtime.
Adaptive self-learning
GPT Agent can learn from engineering outcomes without retraining or modifying ChatGPT model weights. The local runtime records bounded evidence about task success/failure, project mutations, verification results, corrections, and selected reusable skills.
Task → evidence → outcome → candidate → semantic review → memory / skill → better next taskgpt_agent_coding_brief retrieves project-scoped memories, similar verified outcomes, and reusable SKILL.md procedures. Skill ranking is adjusted by verified success/failure/correction history. Evidence candidates stay pending until they are reviewed: promote durable learning through gpt_agent_learn with candidateIds, or close noise/stale evidence with dismissCandidateIds.
The evolution state does not store raw tool arguments or raw tool results, and task text is sanitized before persistence. See Self-learning and adaptive engineering memory.
Install on Windows
The release ZIP contains prebuilt gpt-agent.exe and gpt-agent-setup.exe binaries plus the installer scripts.
Open PowerShell in the extracted release directory. Optionally run a no-side-effect preflight first:
Set-ExecutionPolicy -Scope Process Bypass
.\scripts\windows\Install-GPTAgent.ps1 -WorkspaceRoot "D:\Projects" -PreflightOnlyThen install:
.\scripts\windows\Install-GPTAgent.ps1 -WorkspaceRoot "D:\Projects"Use the directory that actually contains the projects you want ChatGPT to access. Do not use an entire drive unless you intentionally want to expose that whole drive as one workspace.
By default the installer:
installs GPT Agent under
C:\GPTAgent;creates and starts the
GPT Agent Runtimelogon task;installs required/optional developer tooling;
downloads the official OpenAI
tunnel-clientand verifies its published SHA-256 checksum;starts a one-time local setup wizard in your browser;
preserves an existing
data\config.jsonon rerun/update unless-ResetRuntimeConfigis explicitly supplied.
To skip the browser wizard during unattended installation:
.\scripts\windows\Install-GPTAgent.ps1 -WorkspaceRoot "D:\Projects" -SkipSetupWizardRun it later with:
C:\GPTAgent\runtime\scripts\windows\Configure-OpenAITunnel.ps1To uninstall while preserving local data/config/workspace by default:
C:\GPTAgent\runtime\scripts\windows\Uninstall-GPTAgent.ps1 -Confirm UNINSTALLInstall on macOS (Apple Silicon)
The macOS target uses the same Go runtime and 83-tool catalog. It installs at user level and uses launchd instead of Windows Scheduled Tasks. From an extracted macOS arm64 release:
./scripts/macos/install-gpt-agent.sh --workspace-root "$HOME/Projects" --preflight-only
./scripts/macos/install-gpt-agent.sh --workspace-root "$HOME/Projects"Default install root is ~/.local/share/gpt-agent. See docs/MACOS.md for lifecycle, Tunnel setup, FULL SHELL, uninstall, and the explicit macOS MVP isolation limitation.
Local setup wizard
The setup wizard binds only to 127.0.0.1 on a random port and uses a one-time random URL token. It guides you through:
Create or select an OpenAI Tunnel and copy its
tunnel_...ID.Create a Restricted runtime API key with Tunnels Read + Use.
Paste the Tunnel ID and runtime key into the local wizard.
GPT Agent saves the key into a permissions-restricted local secret file (Windows ACL or mode
0600on macOS). The tunnel profile stores only afile:reference, never the literal key.The wizard runs
tunnel-client doctor --explain, registers/startsGPT Agent Tunnel, and waits for/readyz.Open ChatGPT Settings → Connectors, choose Connection: Tunnel, then select or paste the same Tunnel ID.
See docs/CONNECT-CHATGPT.md for the full flow.
Recommended ChatGPT setup
For ongoing engineering work, use GPT Agent inside a ChatGPT Project rather than a standalone one-off chat. Projects keep related chats, reference files, and Project Instructions together, which makes the engineering rules and repository context easier to reuse across sessions.
After connecting the Tunnel, create/open a ChatGPT Project for the codebase and add a small set of engineering rules under Project settings → Project Instructions.
See Recommended ChatGPT Project setup for a ready-to-paste public-safe Project Instructions template.
Security defaults
MCP server binds only to loopback.
Secret-like files are blocked by default.
SAFE command execution is preferred.
Network is off by default for SAFE execution.
FULL SHELL requires a local time-bounded grant.
Destructive filesystem tools require explicit literal confirmation values.
Git checkpoints are available before broad changes.
Audit events are SHA-256 hash chained.
Runtime API keys are not stored in source code or committed config.
Read SECURITY.md before exposing sensitive repositories.
Developer commands
From go-core:
go test ./...
go vet ./...
go build -trimpath -o ..\gpt-agent.exe .
go build -trimpath -o ..\gpt-agent-setup.exe .\cmd\setupBuild the distributable package from the repository root:
.\scripts\windows\Build-Release.ps1The builder runs tests, vet, PowerShell syntax checks, a legacy/secret hygiene gate, compiles both binaries, generates MANIFEST.sha256.json, creates the Windows ZIP, and writes its SHA-256 file.
On macOS Apple Silicon, run the native release contract:
bash ./scripts/macos/test-release-contract.sh --arch arm64It builds the macOS archive, runs native runtime/launchd smoke checks, verifies manifest/archive integrity, and exercises installer preflight plus uninstaller safety.
Documentation
Maintainer and support
Maintainer: @duclucky
Bugs: use the bug report form.
Feature requests: use the feature request form.
Security vulnerabilities: report them privately through GitHub Private Vulnerability Reporting. Do not open a public security issue.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Shared memory and actions for Claude, Kiro, OpenAI, Cursor, and other MCP-compatible AI clients.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to securely operate a single Windows development workspace via a local MCP server, offering file editing, Git status, static analysis, approved test/build, and limited ADB operations with audit logging.MIT
- AlicenseAqualityCmaintenanceEnables ChatGPT web to interact with local Windows/WSL shell and code workspaces via an MCP server, providing file access, shell execution, and snapshot-based workspace management with per-command authorization.18MIT
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to access approved local Windows folders, run commands, control the desktop, and manage session history through a permission-bounded MCP server.3,972MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI clients to securely control and interact with a local Windows machine through 218 configurable tools for files, Git, processes, Windows UI, browser automation, WSL, Office, recovery, skills, and child MCP servers.5 npmMIT