Skip to main content
Glama

GPT Agent

CI Latest Release License: MIT

GPT Agent is a local developer runtime for ChatGPT on Windows. 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, audit logs, and Windows Sandbox-backed command execution.

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 Windows v0.1.0 build exposes 83 MCP tools: 79 native tools plus 4 bounded async job tools.

Download the latest Windows release

Installation guide: docs/INSTALL-ONCE.md

Related MCP server: Windows Local MCP

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
  +-- Windows Sandbox for isolated execution

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 task

gpt_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 and run:

Set-ExecutionPolicy -Scope Process Bypass
.\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 Runtime logon task;

  • installs required/optional developer tooling;

  • downloads the official OpenAI tunnel-client and verifies its published SHA-256 checksum;

  • starts a one-time local setup wizard in your browser.

To skip the browser wizard during unattended installation:

.\scripts\windows\Install-GPTAgent.ps1 -WorkspaceRoot "D:\Projects" -SkipSetupWizard

Run it later with:

C:\GPTAgent\runtime\scripts\windows\Configure-OpenAITunnel.ps1

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:

  1. Create or select an OpenAI Tunnel and copy its tunnel_... ID.

  2. Create a Restricted runtime API key with Tunnels Read + Use.

  3. Paste the Tunnel ID and runtime key into the local wizard.

  4. GPT Agent saves the key into an ACL-restricted local secret file. The tunnel profile stores only a file: reference, never the literal key.

  5. The wizard runs tunnel-client doctor --explain, registers/starts GPT Agent Tunnel, and waits for /readyz.

  6. Open ChatGPT Settings → Connectors, choose Connection: Tunnel, then select or paste the same Tunnel ID.

See docs/CONNECT-CHATGPT.md for the full flow.

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\setup

Build the distributable package from the repository root:

.\scripts\windows\Build-Release.ps1

The 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.

Documentation

Maintainer and support

License

MIT. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/duclucky/gpt-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server