Desktop

Agentify Desktop lets Codex/Claude/OpenCode control your logged-in ChatGPT, Claude, AiStudio, Gemini, Grok, Perplexity web sessions via MCP, parallel hidden/visible tabs, file upload + image download

agentify-sh
by agentify-sh
Media · MPL-2.0 · JavaScript · Updated: 7 months ago
306
stars
27
Forks
verified
A
Safety
high
A
Quality
aistudiochatgptcodexelectrongeminigrokmcpmodel-context-protocol

Agentify Desktop

Agentify Desktop is a local control center for AI web sessions. It lets MCP-capable tools such as Codex, Claude Code, and OpenCode use the AI subscriptions you are already signed into, while keeping browser state, files, and automation on your machine.

What It Does

Requirements

Supported Sites

Preferred Install And Run

Start the desktop GUI without cloning this repo:

npx @agentify/desktop

Equivalent explicit GUI command:

npx @agentify/desktop gui

If you prefer a global install:

npm install -g @agentify/desktop
agentify-desktop

If you want the older repo-clone and local source workflow, use DEVELOPMENT_FROM_SOURCE.md.

MCP Server

Run the MCP server over stdio:

npx @agentify/desktop mcp

Show newly-created browser tabs while debugging:

npx @agentify/desktop mcp --show-tabs

With a global install:

agentify-desktop-mcp
agentify-desktop-mcp --show-tabs

Register With MCP Clients

Codex:

codex mcp add agentify-desktop -- npx -y @agentify/desktop mcp

Claude Code:

claude mcp add --transport stdio agentify-desktop -- npx -y @agentify/desktop mcp

OpenCode config example:

{
  "mcp": {
    "agentify-desktop": {
      "type": "local",
      "command": ["npx", "-y", "@agentify/desktop", "mcp"],
      "enabled": true
    }
  }
}

Use --show-tabs at the end of the command while debugging:

codex mcp add agentify-desktop -- npx -y @agentify/desktop mcp --show-tabs

First Run

  1. Start the app:
npx @agentify/desktop
  1. In the Control Center, create or show a ChatGPT tab.

  2. Sign in to the target vendor in the browser window.

  3. Register the MCP server with your CLI.

  4. Ask your MCP client to use Agentify:

Use Agentify Desktop with tab key repo-triage.
Ask ChatGPT to summarize this repo in 8 bullets and list the top 3 risky areas to change first.
Return the answer and keep the tab key stable for follow-ups.

The core loop is:

Useful MCP Tools

The MCP server registers agentify_* tools, including:

Artifact Workflow

Generate an image or file in a stable tab:

{
  "tool": "agentify_query",
  "arguments": {
    "key": "sprite-lab",
    "prompt": "Generate 3 simple 2D pixel-art robot sprite variations on transparent backgrounds."
  }
}

Save the generated images locally:

{
  "tool": "agentify_save_artifacts",
  "arguments": {
    "key": "sprite-lab",
    "mode": "images",
    "maxImages": 3
  }
}

Reattach one of the returned file paths in a follow-up:

{
  "tool": "agentify_query",
  "arguments": {
    "key": "sprite-lab",
    "prompt": "Use the attached sprite and make a damaged version with one broken eye.",
    "attachments": ["/absolute/path/to/sprite.png"]
  }
}

Codebase Context Workflow

Ask Agentify to pack local files or folders into a prompt:

{
  "tool": "agentify_query",
  "arguments": {
    "key": "repo-review",
    "prompt": "Summarize this codebase in 8 bullets and list the top 3 risky files to change first.",
    "contextPaths": ["/absolute/path/to/repo"]
  }
}

Control context size:

{
  "tool": "agentify_query",
  "arguments": {
    "key": "repo-review",
    "prompt": "Focus only on rendering and state management.",
    "contextPaths": ["/absolute/path/to/repo"],
    "maxContextChars": 120000,
    "maxContextFiles": 80,
    "maxContextInlineFiles": 30
  }
}

The tool result includes packedContextSummary so you can see what was included, attached, or skipped.

Browser Backend

Agentify Desktop supports two browser backends:

Use Chrome CDP when SSO providers fight embedded Electron login:

AGENTIFY_DESKTOP_BROWSER_BACKEND=chrome-cdp npx @agentify/desktop

Optional Chrome CDP settings:

AGENTIFY_DESKTOP_CHROME_DEBUG_PORT=9333 npx @agentify/desktop
AGENTIFY_DESKTOP_CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" npx @agentify/desktop

You can also pass GUI flags:

npx @agentify/desktop gui --browser-backend chrome-cdp
npx @agentify/desktop gui --chrome-debug-port 9333

Chrome CDP profile modes:

CAPTCHA And Login Policy

Agentify Desktop does not bypass CAPTCHAs or use third-party solvers. If a verification or login challenge appears, automation pauses, brings the relevant window forward, and waits for you to complete the step manually.

If your account uses Google, Microsoft, or Apple SSO, keep auth popups enabled in the Control Center. If embedded login remains unreliable, use Chrome CDP.

Local Data And Privacy

Agentify Desktop is local-first:

Anyone with access to your machine account may be able to access local session data. Treat the machine account as the security boundary.

Environment Variables

Development From Source

Source checkout, quickstart script usage, local build commands, and source-only debugging notes live in DEVELOPMENT_FROM_SOURCE.md.

Package Commands

The npm package exposes these commands:

Examples:

npx @agentify/desktop
npx @agentify/desktop mcp
npx -p @agentify/desktop agentify-desktop-mcp

License And Trademarks

The code is licensed under MPL-2.0. Agentify trademarks and branding are not included in that license. See TRADEMARKS.md.

🔓 Sign in to unlock more
Sign in with GitHub