Documentation

Install VibeGhost, connect securely, organize terminals, work with files and Git, and configure optional agent integrations.

Overview

VibeGhost runs terminals on one computer and makes them available in a browser. Use it for coding agents, development servers, scripts, multiplexers, or ordinary shells. A phone or laptop is only the control surface: commands run and files stay on the Mac, VM, container, or other host where VibeGhost is installed.

Any installed terminal program can run in a session. Pi, Codex, and Claude Code have additional identity-aware features, while Gemini, opencode, tmux, Zellij, Screen, and other commands can run through their normal CLIs. The optional Pi extensions and Claude Code plugin give those agents session tools and Workspace Memory; neither is required to use VibeGhost.

Workspaces keep related sessions together. Each one has a stable ID, a default host directory, its own route, and a filtered session list. Sessions inside a Workspace are also grouped by working directory, so separate repositories do not become a flat wall of terminal tabs.

A Workspace is the organizational boundary. A working directory selects the repository or folder on the host. A session is the terminal process itself.

Compare VibeGhost

These tools overlap, but start from different workflows. Compare how you start work, where it runs, and what you need to operate it—not a checkmark score.

Researched against official upstream docs/source and the local VibeGhost checkout. Upstream links are pinned snapshots; VibeGhost links follow main, were not publicly readable at review, and may require repository access. VibeGhost claims were checked against the local working tree, not a verified public release. This is not a hands-on benchmark or a guarantee about every released version.

Shared roots, a different interface

VibeGhost builds on VibeTunnel’s terminal backend, rather than being an unrelated implementation. The current interface is a Next.js/React and Tailwind rebuild; the README also credits its Oathkeeper-derived UI.

Starting work
VibeGhost

Create a Workspace and a real host terminal, then run a shell, agent, server, or script. No vt prefix is required for this dashboard workflow. Session creation.

VibeTunnel

The documented local-terminal path wraps commands with vt (for example, vt npm test). It forwards through vibetunnel fwd. VibeTunnel also supports browser-created sessions; the wrapper is not its only entry point. Workflow.

UI & terminal engine
VibeGhost

Next.js/React, Tailwind CSS, and Ghostty Web. Dependencies.

VibeTunnel

Lit components and Ghostty Web; its package also includes Tailwind. “xterm vs Ghostty” is not a current distinction between these projects. This describes reviewed source, not every older release. Dependencies.

Installation
VibeGhost

Source install with Node.js 22.22+, native PTY build tools, Git, and a shell; an optional Linux Docker recipe is included. Requirements.

VibeTunnel

A native macOS menu-bar app for Apple Silicon, or an npm server for Linux and headless systems. The README recommends Tailscale for remote access and documents Git Follow Mode. Setup & features.

How to choose. Choose VibeGhost for its Workspace-based browser workflow and optional agent integrations. VibeTunnel is a natural fit if you want its Mac menu-bar experience, vt forwarding, or Git Follow Mode. Both need a running host; neither is simply a hosted terminal website.

Where VibeGhost can run. It needs a long-running Node/PTY host with shells, Git, agent credentials, storage, and WebSocket support—not static hosting or a request-only serverless function. The repo includes a Railway Dockerfile/health-check configuration, not a verified one-click template. Persist repositories, ~/.vibeghost, and agent data; configure HTTPS, proxy headers, and dashboard protection. Railway terminals run inside that container, not on your laptop. A healthy deployment alone does not verify every PTY or agent workflow. Deployment requirements.


Installation

Install Node.js 22.22 or newer, npm, Git, Python 3, a shell, and a C/C++ build toolchain for the native PTY addon. On macOS, the build tools come with Command Line Tools. New sessions use the host's default shell unless you choose another installed command.

terminal
git clone https://github.com/junaid33/vibeghost.git
cd vibeghost
npm install

# Start locally on the default port (4021)
npm run dev

# Or run on a custom port
PORT=4022 npm run dev

No .env file is needed: every setting has a default. Open http://127.0.0.1:4021. The server listens on all interfaces, so protect the dashboard before making it reachable from another device. To change a setting, copy .env.example to .env and edit it.

Changing the port or VIBEGHOST_CONTROL_DIR does not isolate every setting, credential, or service. Run independent installations under separate OS accounts or containers.

Run a production build

Use the integrated production server when you are not actively changing the app. Next-only scripts do not provide the terminal backend:

npm run build
npm start

Keep it running

npm start stops when you close its terminal or restart the computer. A process manager starts it again for you. With pm2:

terminal
npm install -g pm2
npm run build
pm2 start npm --name vibeghost -- start
pm2 save
pm2 startup   # prints the one command that starts pm2 at boot

A launchd agent on macOS or a systemd service on Linux works the same way: run npm start from the VibeGhost folder, restart it when it exits, and start it at login or boot. Rebuild with npm run build after pulling a new version.

First run

The rebuilt onboarding flow is still pending release verification, and older versions may differ. In the current source it proceeds in this order:

  1. Verify ownership of a new remote installation with the deployment password configured on the host. Direct trusted-loopback setup does not need this step.
  2. Choose password protection, or explicitly choose Leave VibeGhost unlocked and acknowledge that anyone who reaches the URL can control host terminals and files. The unlocked choice is saved.
  3. Enable the optional MCP server or skip it. OAuth requires dashboard protection; unlocked access does not enable anonymous MCP administration. See MCP server setup.
  4. Create the first real terminal. The default directory is the host user's home, not a directory on the browser device. Review the directory before creating it.

Mobile Access

Run VibeGhost on your MacBook or another computer, then open it from your phone. Your terminal sessions and files stay on the computer; the phone is just the remote control. Keep the computer awake and VibeGhost running while you use it remotely.

Connect both devices to Tailscale

Install Tailscale on your computer and phone, sign in to the same tailnet, and connect both devices. They do not need to be on the same Wi-Fi network. Enable VibeGhost's App Lock with a strong password before connecting remotely; you can also set a username in Settings.

Option 1: Open the computer's Tailscale IP

terminal
# On the computer running VibeGhost
tailscale ip -4

# On your phone, open:
http://100.x.x.x:4021

Replace 100.x.x.x with the host's Tailscale address. Direct IP access also requires VibeGhost to listen on that interface and the firewall to allow it; a loopback-only listener cannot be reached this way. Use your actual VibeGhost port if it differs from 4021. Access through this address is private to devices authorized by your tailnet's access rules, not the public internet.

Option 2: Get private HTTPS with Tailscale Serve

This is the recommended option: VibeGhost can keep listening on loopback while Tailscale Serve provides an HTTPS URL for your tailnet. On the computer running VibeGhost, run:

terminal
tailscale serve --bg http://127.0.0.1:4021
tailscale serve status

Follow any setup link Tailscale prints to enable HTTPS, then open the HTTPS URL shown by tailscale serve status on your phone. Use your actual VibeGhost port in the command. Serve does not make the dashboard public: your phone must be connected to the tailnet and allowed by its access rules. HTTPS also supports browser features such as clipboard access that may be restricted over plain HTTP.

Public tunnels: advanced use only

Cloudflare Tunnel and Tailscale Funnel are other options. Funnel is Tailscale's public-sharing feature, not Serve. A public Cloudflare Tunnel hostname or Funnel URL makes the service reachable from the internet without joining your tailnet, unless you add a separate access restriction such as Cloudflare Access.

We do not recommend public tunnels unless you understand and configure the security involved. If VibeGhost is unprotected, anyone who reaches its public URL can access your terminals and files and run commands on your computer with your OS account's permissions. An obscure URL is not protection. Set a strong dashboard password, verify that remote visitors must authenticate, and configure the proxy safely before exposing it. See Security and remote access. For routine phone access, use a private Tailscale IP or Tailscale Serve instead.
Enable App Lock before connecting from another device. The mobile toolbar provides terminal keys that phone keyboards often hide, including Tab, Esc, arrows, Ctrl+C, Ctrl+D, and page controls. Actual keyboard and clipboard behavior varies by device.

Security and remote access

Dashboard access is shell access to the host. A person who can use VibeGhost can type commands, start processes, read project files, and change Git repositories with the permissions of the server's OS account.

Protect the dashboard

Set a strong dashboard password during onboarding or in Settings before remote access. You can also set a username. Protected installations require remote browsers to unlock before they use session APIs or terminal WebSockets. Lock revokes existing browser unlock tokens across the installation. Security changes require the current password.

App Lock is not a firewall, sandbox, or multi-user permission system. VibeGhost trusts direct loopback requests that have no forwarding headers. Configure reverse proxies to send trustworthy forwarding headers so remote traffic cannot look local, and keep the host OS account protected.

Who can configure an installation?

Before a new remote installation can choose Protected or Unprotected, it must verify ownership. Set VIBEGHOST_DEPLOYMENT_PASSWORD on the host to at least 32 random characters, then enter it during onboarding. Trusted loopback setup does not need it. VIBEGHOST_SETUP_TOKEN remains a fallback only when the new variable is absent. API provisioning sends the value inX-VibeGhost-Deployment-Password, never in a URL.

The deployment password cannot change an established installation. Existing protected installs require their current dashboard password. Choosing unlocked access does not make a visitor an owner or let anonymous users change credentials or MCP settings. It only leaves host terminals and files exposed to anyone who can reach the dashboard, so keep an unlocked installation isolated and never publish it through a tunnel.

Use a private tailnet

A direct Tailscale IP works inside your private tailnet. For an HTTPS tailnet URL, proxy the local VibeGhost port with Tailscale Serve, then use the URL shown by the status command:

terminal
tailscale serve --bg http://127.0.0.1:4021
tailscale serve status

Use the URL reported by tailscale serve status. HTTPS also avoids browser restrictions on clipboard and file APIs. If VibeGhost uses another port, update the Serve target.

Avoid public port forwarding, public Cloudflare Tunnel hostnames, and Tailscale Funnel for routine access. They can expose the dashboard to the internet; Tailscale Serve and direct Tailscale IP access stay private to authorized tailnet devices. Never publish an unprotected installation.

MCP server

VibeGhost can expose its terminal controls through Model Context Protocol (MCP). Once you authorize a compatible client, it can manage work on the computer or server where VibeGhost is running. MCP is optional; the dashboard works without it. Enabling MCP does not create a public URL or install a hosted tunnel.

The host distinction matters. A VibeGhost server on your Mac operates that Mac's terminals and files. A server on Railway operates inside its Railway container and mounted volumes. Opening either dashboard on a phone does not give VibeGhost access to the phone's filesystem or desktop.

What clients can do

The tool list returned by your installation is authoritative. The current server has tools for the following workflows, subject to the scopes you grant:

  • List, create, and update Workspaces using exact stable IDs and existing host directories.
  • Find sessions, inspect metadata or bounded output, wait for state changes, create terminals, and update session metadata.
  • Send text and supported keys. Pi sessions also support Pi-aware steering and queued follow-up delivery.
  • Read Workspace context, bounded Workspace Memory, historical Pi sessions, and read-only repository status, history, branches, and diffs.
  • Export a Workspace as a short-lived ZIP, revive an eligible exited Pi session, or manage requested Workspace schedules.
  • Stop a specific session when the client has the separate stop scope. Stopping keeps its metadata and recording.

Representative tools include create_workspace, update_workspace,create_session, send_session_input, inspect_session,inspect_repository, and wait_for_session. Some tools depend on the target session's identity or on optional Workspace services. MCP controls terminals; it does not control the mouse, desktop windows, or arbitrary browser-device settings.

Example: coordinate a test run from ChatGPT

After adding your VibeGhost connection to a ChatGPT conversation, try a bounded request with clear approval limits:

List my Workspaces and find the existing repository for my app. If it needs a Workspace, ask me to confirm the host directory first. Start a separate terminal for its documented test command, read the results, and summarize any failures. Do not change files, install dependencies, or stop other sessions without asking me.

The test runs with the tools and permissions available on the VibeGhost host. ChatGPT sees the returned tool results in the conversation. Check the selected Workspace and directory before approving writes, just as you would before typing a command yourself.

Follow OpenAI's current ChatGPT connection instructions. Developer mode and custom connections depend on account availability and workspace policy, and an administrator may need to allow them. VibeGhost does not provide access to those ChatGPT features.

Enable MCP without weakening dashboard security

Protect the dashboard, then enable MCP in Settings. The onboarding flow being prepared for release offers the same optional MCP step after ownership and dashboard protection, before it creates the first terminal. Deployed versions may still show an older setup flow, so check the version you are running.

To claim a new remote installation, set VIBEGHOST_DEPLOYMENT_PASSWORD on the host to a random value of at least 32 characters. VIBEGHOST_SETUP_TOKEN is accepted only as a legacy fallback when the new variable is absent. This password proves ownership during setup. It is not an MCP bearer token, and it cannot replace the current dashboard password when an existing protected installation changes MCP access.

OAuth and dashboard-created application keys require a protected installation. Choosing Leave VibeGhost unlocked creates dangerous persisted terminal access, but it does not grant anonymous visitors permission to administer MCP or security settings. Never publish an unlocked dashboard to make a connector easier to configure.

Choose the right endpoint

# Client on the same Mac (default source-install port)
http://127.0.0.1:4021/mcp

# Client connecting to your public HTTPS installation
https://YOUR-HOST/mcp

# Example Railway service origin
https://YOUR-SERVICE.up.railway.app/mcp

Replace the placeholders with your installation. The path is /mcp, not/api/mcp or https://vibeghost.org/mcp. This site only hosts the documentation. Change port 4021 if your local server uses another port.

VibeGhost uses Streamable HTTP: each JSON-RPC message is sent by POST and receives a JSON response. There is no legacy /sse endpoint. A normal browser GET to/mcp may return 405 even when the connector endpoint is working.

Railway and public VMs

A Railway service or correctly configured VM can use https://YOUR-HOST/mcpdirectly. The public origin must provide TLS, route the MCP and OAuth endpoints, preserve trusted forwarded host/protocol headers, and require authentication. A bare VM or public IP without HTTPS is not ready. These clients operate on the remote host, so no tunnel back to your Mac is involved.

Unavailable: no deployable VibeGhost Railway template is published yet. This button does not create or deploy anything. A manually configured service can use its own HTTPS URL.

OAuth needs more than the MCP path. Keep /mcp, /.well-known/,/oauth/, and the dashboard login and consent pages on the same reachable origin. On Railway, VibeGhost uses RAILWAY_PUBLIC_DOMAIN when available; otherwise it derives the issuer from trusted request headers. Discovery must advertise the public HTTPS origin, not an internal localhost address.

Connecting a cloud client to a local Mac

A cloud client cannot call your Mac's localhost URL or its private Tailscale address. For a public-URL connection, run and manage an HTTPS tunnel yourself. Tailscale Serve remains private to your tailnet, and VibeGhost does not include a hosted tunnel.

For short development tests, one option is a Cloudflare Quick Tunnel:

cloudflared tunnel --url http://127.0.0.1:4021

Protect VibeGhost and enable MCP before running that command. Add /mcp to the HTTPS trycloudflare.com origin it prints. The tunnel publishes the whole proxied app, not only MCP, and lasts only while the process is running. Stop it with Ctrl+C.

Quick Tunnels are development-only, use temporary hostnames, allow up to 200 concurrent requests, and do not support SSE. VibeGhost uses JSON responses, but compatibility still depends on the client. For ongoing use, configure a named tunnel with a stable hostnameor another HTTPS proxy you manage. Do not put an interactive proxy login in front of OAuth routes unless your MCP client can complete it.

OpenAI Secure MCP Tunnel

OpenAI documents Secure MCP Tunnelas a private alternative for supported connections. You run tunnel-client on a machine that can reach VibeGhost; it opens an outbound HTTPS connection instead of publishing the Mac's listener. This is an OpenAI service, not a VibeGhost feature.

Use OpenAI's current setup guide rather than copying old CLI steps. Setup requires a tunnel ID from Platform tunnel settings, a runtime API key, the necessary tunnel permissions, and the correct ChatGPT workspace. Tunnel management, tunnel use, and ChatGPT developer-mode access are separate permissions. This path has not been end-to-end verified with VibeGhost, so test it before depending on it.

In ChatGPT, choose the Tunnel connection option and select or enter the configured tunnel. Secure MCP Tunnel is meant for private connections. Public distribution still requires a stable public HTTPS endpoint.

Connect a public HTTPS endpoint with OAuth

  1. Add your full https://YOUR-HOST/mcp URL in a compatible MCP client. OpenAI's current guide places Developer mode under Settings → Security and login and connections at ChatGPT Plugins. Labels and availability can change, so use the official instructions.
  2. Choose OAuth. The client follows the server's 401 WWW-Authenticate challenge, discovers the authorization server, and registers a public PKCE client. You do not need to preconfigure a client secret.
  3. Open the authorization page, unlock VibeGhost, and review the consent screen. Grant only the scopes the client needs.
  4. After the callback and token exchange finish, refresh the tool list. Start by listing Workspaces rather than typing into or stopping a real session.
GET  /.well-known/oauth-protected-resource
GET  /.well-known/oauth-protected-resource/mcp
GET  /.well-known/oauth-authorization-server
POST /oauth/register
GET  /oauth/authorize
POST /oauth/authorize/decision
POST /oauth/token
POST /oauth/revoke

The server uses OAuth authorization code flow with PKCE S256, explicit consent, and rotating refresh tokens. Dynamic registration accepts HTTPS callbacks and HTTP development callbacks on localhost or 127.0.0.1; the callback must exactly match its registered URI. Clients that require a fixed secret or Client ID Metadata Documents are not supported by this implementation.

Scopes are vibeghost:read, vibeghost:write, andvibeghost:stop. Read access can reveal source code and terminal output. Write access can create sessions and send commands. Stop access can terminate a process. Grant only read when you are checking the connection, and treat returned tool content as untrusted data.

Application keys and static bearer tokens

Settings can create a scoped application key. Its secret is shown once, and a compatible client sends it as Authorization: Bearer <key>. Revoke the key from the application list when you no longer need it.

Operators can instead set VIBEGHOST_MCP_TOKEN and send that value in the same header. This static token does not get an application key's per-tool scope checks, so prefer OAuth or scoped application keys. VIBEGHOST_MCP_ENABLED andVIBEGHOST_MCP_OAUTH_ENABLED support environment-controlled deployments, but persisted security settings may take precedence.

Never put deployment passwords, setup tokens, or bearer tokens in a URL, screenshot, or published client configuration. Never enable VIBEGHOST_MCP_ALLOW_UNAUTHENTICATEDon a public endpoint.

Check the configuration safely

curl -i https://YOUR-VIBEGHOST-HOST/mcp/auth-capabilities
curl -i https://YOUR-VIBEGHOST-HOST/.well-known/oauth-protected-resource
curl -i https://YOUR-VIBEGHOST-HOST/.well-known/oauth-authorization-server

Check that MCP is enabled, the intended authentication mode is listed, and discovery uses the reachable public origin. A disabled MCP endpoint returns 404. An enabled endpoint that needs credentials returns 401; one with no configured authentication returns 503; insufficient scope returns 403. These requests check routing and configuration only. They do not certify the deployment or authorize terminal operations.


Local data and cleanup

VibeGhost stores its state on the host. Recordings and uploads may contain prompts, source code, paths, credentials, and command output. Protect this data and decide what needs backup before deleting or moving it.

Default data layout
~/.vibeghost/
  workspaces.json          # Workspace definitions
  config.json              # Runtime configuration
  settings.json            # App/onboarding settings
  secrets.json             # Dashboard security material
  mcp-oauth.json           # MCP clients, keys and OAuth state
  control/
    uploads/               # Pasted and uploaded images
    <session-id>/
      session.json         # Session metadata
      stdout               # Recorded terminal output

VIBEGHOST_CONTROL_DIR moves session metadata, recordings, sockets, and uploads to another control directory. It does not move Workspace, app-lock, onboarding, or MCP state under ~/.vibeghost. Agent data has its own location; for example, Pi transcripts and optional Workspace Memory live under ~/.pi.

Stop and clean are different

  • Stopping a running session terminates its process but keeps its metadata and recorded output.
  • Cleaning an exited session removes that session's directory, including its metadata and terminal recording.
  • Cleaning all exited sessions removes every exited session directory. It does not remove Workspace definitions or the shared uploads directory.
  • Oversized exited recordings may be compacted on server startup, so session history should not be your only archive.
Cleanup cannot be undone. Save any terminal output or uploaded files you need before cleaning a session or deleting files under the control directory.

Platform and browser support

macOS is the locally exercised host, and the repository includes a Linux container recipe. VibeGhost needs a PTY, an installed shell, filesystem access, and Git on the host. Containers see their own tools and mounted files, not the browser device. Native Windows support has not been established, and host features such as native terminal windows or sleep prevention are not portable guarantees.

Automated browser fixtures cover Chromium at desktop and narrow viewport sizes. They do not verify physical iPhone behavior, mobile IME, touch selection, clipboard access, or return after background eviction. Safari and Firefox also need separate testing. Bug reports should include host OS, browser, and version details.

The terminal stream requires WebSockets. Reverse proxies must pass WebSocket upgrades as well as normal HTTP requests.

Workspaces

A Workspace gives a set of terminals a stable home in the sidebar. It has an ID, name, visual identity, route, and default working directory on the server. Selecting a Workspace filters the session list and determines where new sessions appear.

Workspace identity

Navigation does not stop or move running processes. Automation should discover and use the exact Workspace ID because names may be duplicated. Optional Pi Workspace Memory also follows that stable ID. None of this creates a filesystem or permission boundary; every session still runs with the host account's access.

workspaceId and workingDir answer different questions. The first places a session in a VibeGhost Workspace. The second chooses the host folder where its process starts and supplies the file and Git context. Sessions with the same working directory form a project group inside the Workspace.

FieldWhat it controls
workspaceIdActive Workspace route, session filtering, and optional Workspace Memory profile.
workingDirTerminal cwd, project grouping inside the Workspace, git context, file browser root, and repo files the agent sees first.
tagsLightweight role hints such as pi, dev, codex, claude, or new.

Sessions

A session is a real terminal process on the VibeGhost host. It can run a shell, an installed coding-agent CLI, a development server, a test watcher, logs, scripts, tmux, Zellij, Screen, or any other supported command.

Create a session

Choose a Workspace, host working directory, name, tags, and one of the commands found on that host. An empty command uses the host's default shell. You can start other tools from inside that shell. Opening a separate native terminal window is available only on hosts that support it.

Agent integrations

Pi, Codex, and Claude Code have provider-aware identity, conversation, and resume/fork capabilities in the current source. Pi and Codex also have semantic inspection, and Pi alone supports steer and follow-up input. Some rebuilt history, artifact, binding, and live action flows still need end-to-end verification. Other installed agents can run as terminal programs, but no deeper integration should be inferred. A tag alone does not create an agent identity or grant capabilities.

For Claude Code, VibeGhost links each terminal to its exact Claude conversation. Chat shows that conversation, and Resume or Fork continue it, instead of guessing from the folder or the most recent transcript. This works without any plugin. The optional Claude Code plugin adds state reporting, automatic titles, and session tools.

SessionInfo
interface SessionInfo {
  id: string
  workspaceId?: string
  name: string
  tags?: string[]
  command: string[]
  workingDir: string
  status: "starting" | "running" | "exited"
  piSessionId?: string
  piSessionPath?: string
  agentIdentity?: AgentIdentityV1 // Claude session or Codex thread
}

Ghostty Web

VibeGhost renders terminal sessions with Ghostty Web. Each browser terminal connects to a real local PTY stream and keeps terminal output, resize, scrollback, input, and lifecycle state in sync.

The browser receives bounded recent history when it connects, then follows live output. The transport also handles resizing, reconnects, and activity signals. Long-running output, very large pastes, and physical mobile-device behavior should still be tested on the deployment you plan to use.


Input Component

The composer below the terminal lets you edit a prompt before sending it to the PTY. It is useful for multiline instructions and large pasted blocks, especially on mobile, where editing directly inside a terminal can be awkward.

  • Multi-line editing with Enter to send and Shift+Enter for a new line
  • Paste handling for large text blocks
  • Abort control that sends Ctrl+C to the terminal
  • Scroll controls and connection status
  • Mobile quick keys for common terminal shortcuts

File attachments

The attachment control uploads a file to the VibeGhost host and inserts its absolute host path into the draft. The receiving command must be able to read that path. An image upload does not by itself give the selected agent image-understanding support.

~/.vibeghost/control/uploads/[generated-id].[extension]

Mobile file selection depends on browser permissions. Image clipboard and drag/drop flows are not a supported guarantee of this rebuilt composer.


Keybindings

Browser shortcuts such as Cmd+T, Cmd+W, and browser tab switching remain with the browser. Terminal shortcuts such as Ctrl+C,Ctrl+D, Ctrl+Z, Ctrl+L, and Ctrl+Rare routed to the terminal.

On mobile, the quick-keys toolbar gives touch-friendly access to the terminal keys that native mobile keyboards usually hide.


Pi extension model

Skip this section if you do not use Pi. Claude Code has its own plugin, and VibeGhost still runs Codex, Gemini, opencode, multiplexers, servers, scripts, and shells through their terminal interfaces. The bundled Pi extensions let Pi identify VibeGhost Workspaces, control sessions, and report lifecycle states without scraping terminal text.

Pi loads extensions as TypeScript modules. Put trusted global extensions under~/.pi/agent/extensions/, or project-only extensions under.pi/extensions/. Extensions can register tools and commands, listen to lifecycle events, persist state, add prompt context, and update Pi's UI. Run/reload or restart Pi after installing or changing one.

Pi's deeper integration is optional. Other authorized clients can use VibeGhost's HTTP or MCP APIs, but they still need a valid network path and the appropriate credentials.

Install the bundled Pi extensions

The VibeGhost repo includes optional Pi extension packages under extensions/pi. They are not part of the main VibeGhost app build; install them only if you want Pi to get VibeGhost session-control tools or Workspace Memory commands. From a cloned VibeGhost repo, copy both extension folders into Pi's global extension directory and install each extension's dependencies. Review existing extension folders first; do not overwrite another installation or its local changes:

Install VibeGhost Pi extensions
cd vibeghost
mkdir -p ~/.pi/agent/extensions
cp -R extensions/pi/vibeghost-session ~/.pi/agent/extensions/vibeghost-session
cp -R extensions/pi/workspace ~/.pi/agent/extensions/workspace
npm install --prefix ~/.pi/agent/extensions/vibeghost-session
npm install --prefix ~/.pi/agent/extensions/workspace

Then restart Pi or run /reload inside the Pi session. After reload, the session extension exposes VibeGhost terminal-control tools, and the Workspace extension adds commands such as /workspace status, /workspace memory on, and /workspace memory refresh.

For project-local setup, copy the same folders into .pi/extensions/ inside a trusted project instead of ~/.pi/agent/extensions/. Only install Pi extensions from sources you trust; they run with your local user permissions.


VibeGhost session extension

The session extension gives Pi tools for VibeGhost's Workspace and session APIs. It can identify its current terminal, update its title and tags, discover Workspaces, create or inspect sessions, send text or keys, and stop a session when the user asks. Semantic inspection is bounded; raw mode reads only the visible terminal screen.

When Pi exposes its session identity, the extension stores that identity with the VibeGhost session so later resume or fork operations can target the right conversation. Lifecycle updates can use a fast local API socket. Other operations use the same HTTP API available to authorized automation.

Pi tools exposed by the session extension
update_vibeghost_session({ title, tags })
list_vibeghost_sessions({ status, workingDirIncludes })
get_vibeghost_session({ sessionId })
create_vibeghost_session({ name, workingDir, workspaceId, command: ["zsh"], tags })
send_vibeghost_session_input({ sessionId, text, submit: true })
read_vibeghost_session_text({ sessionId })
stop_vibeghost_session({ sessionId })

Non-Pi automation can use the authenticated HTTP API or the optional MCP server. Do not treat browser cookies, local-loopback trust and scoped MCP credentials as interchangeable authentication methods.


Workspace Memory extension

Workspace Memory is an optional Pi feature and starts off. Turning it on binds the Pi session to the active VibeGhost Workspace and adds compact Workspace and user memory, session recall, and scheduling tools. Pi shows the state on a separate line below its editor, and /workspace memory autocompletes the common actions.

Pi commands
/workspace status
/workspace memory on
/workspace memory off
/workspace memory refresh
/workspace memory list workspace
/workspace memory add workspace <compact durable fact>
/workspace sessions query <phrase>
/workspace cron list

Memory follows the Workspace, not the current directory. The session's cwd still controls terminal status, recall roots, Git context, and file inspection.

Deliberate cross-Workspace memory

Tools target the active Workspace unless an orchestrator deliberately discovers another Workspace and passes its exact workspace_id. Results repeat the selected name, ID, and profile so the boundary stays visible. Display names, paths, and raw profile names cannot authorize a mutation, and cross-Workspace access never exposes the other Workspace's user memory.

Pi tool examples
workspace_memory({ action: "discover", query: "Example App" })
workspace_memory({ action: "list", workspace_id: "example-app", target: "workspace" })

Tools added when memory is on

  • workspace_memory: discover Workspaces or add, replace, remove, and list compact durable entries in the active or explicitly selected Workspace.
  • session_search: search and read past Pi sessions in this Workspace.
  • cronjob: create, list, pause, resume, run, remove, or tick scheduled jobs in this Workspace profile.

Frozen snapshots

A Pi session captures a frozen memory snapshot when /workspace memory onruns. Memory writes persist immediately, but they affect newer sessions first. Run/workspace memory refresh when a long-running Pi session needs to see newer memory writes.

What belongs in memory

Save stable facts, user preferences, workspace operating rules, hard-to-rediscover lessons, and durable repo conventions. Do not save raw logs, full audit reports, temporary TODO lists, secrets, or information that belongs in repo files such ascontext.md, progress.md, or normal documentation.


Claude Code plugin

Skip this section if you do not use Claude Code. Without the plugin, VibeGhost already links each Claude terminal to its exact conversation, shows it in Chat, and offers Resume and Fork. Status comes from Claude Code's own reports (2.1.295 and newer) and titles sync automatically. Two optional pieces add more: VibeGhost's session MCP gives Claude the same session-control tools the Pi extensions give Pi, and the VibeGhost plugin lets you answer Claude's questions from VibeGhost's chat.

What it adds

  • Questions in chat (plugin): when Claude Code asks a question, it also appears in VibeGhost's chat. Answer there or in the terminal; whichever comes first wins.
  • Session titles: Claude Code names its own sessions, and VibeGhost copies that title onto the terminal automatically. You do not need to prompt for one, unlike Pi, which is instructed to name itself. A name set with /rename in Claude wins over the automatic one, and a rename made in VibeGhost is never overwritten.
  • Session tools (session MCP): list, inspect, create, message, fork, revive, and stop sessions; list, create, and update Workspaces; inspect repositories; wait for a session; check host status; and use Workspace Memory, cron jobs, and Workspace history search.
Claude tools from the session MCP
list_sessions, get_session, inspect_session, wait_for_session
create_session, update_session, send_session_input
fork_session, revive_session, stop_session, cleanup_session
list_workspaces, create_workspace, update_workspace, get_workspace_context
list_workspace_repositories, inspect_repository, get_host_status
workspace_memory, cronjob, search_workspace_sessions

The tools are served at /mcp-session by the VibeGhost server that owns the terminal. Each terminal proves which session it is with a per-session credential that only works on loopback, so another session's ID is never enough. Add the server once:

Add the session MCP (once)
CLAUDE_CONFIG_DIR=~/.claude claude mcp add --scope user --transport http vibeghost \
  '${VIBEGHOST_API_URL:-https://your-vibeghost-host}/mcp-session' \
  --header 'X-VibeGhost-Session: ${VIBEGHOST_SESSION_ID:-}' \
  --header 'X-VibeGhost-Session-Capability: ${VIBEGHOST_SESSION_CAPABILITY:-}'

Keep the single quotes: Claude Code expands the variables each time it connects. To delegate work to another Claude session, create a session whose initial input starts Claude, such as claude '<task>'.

Limits

  • Steer and follow-up delivery stays Pi-only. send_session_input can type into any session, but steer and followUp need a Pi target.
  • Workspace history search currently indexes Pi sessions only. Claude transcripts are not indexed yet.
  • Bulk cleanup of all exited sessions and public Workspace download links are not exposed.
  • Outside a VibeGhost terminal, the session MCP lists no tools.
Claude Code still asks for permission before it runs an MCP tool unless you allow that tool. The plugin hooks run with your local user permissions, so install it only from a source you trust.

Install the Claude Code plugin

The VibeGhost repo is also a Claude Code plugin marketplace. Its root contains .claude-plugin/marketplace.json, which lists the vibeghost plugin, so you can install it with Claude Code's standard plugin commands. No review or submission is involved. Inside Claude Code, run:

Inside Claude Code
/plugin marketplace add junaid33/vibeghost
/plugin install vibeghost@vibeghost

Or install it from your local clone. Replace the path with your VibeGhost checkout:

From a local clone
claude plugin marketplace add /path/to/vibeghost
claude plugin install vibeghost@vibeghost

Then start a new Claude session in a VibeGhost terminal. Sessions that are already running keep what they loaded. Inside the new session, /mcp should list the vibeghost server. To remove the plugin, run /plugin uninstall vibeghost@vibeghost.

Upgrading from the hooks installer

Older setups added VibeGhost hooks to ~/.claude/settings.json. Those hooks would run a second, stale copy alongside the plugin. Run this once from your clone to remove them. It backs up settings.json before changing it:

Remove legacy hooks
cd vibeghost
python3 scripts/install-claude-plugin.py --apply

Suggested Claude prompt

After cloning and running VibeGhost, you can ask Claude Code:

Prompt
This VibeGhost repo ships a Claude Code plugin. Add the repo as a plugin marketplace with `claude plugin marketplace add <this repo path>`, install `vibeghost@vibeghost`, then tell me to start a new Claude session.

Activity Signals

Session cards combine several explicit signals instead of treating every line of output as proof that an agent is busy. Terminal programs can report portableOSC 9;4 progress, while shell integration reports states such ascommandRunning and promptIdle.

The optional Pi session extension adds semantic working, blocked, waiting, and idle states from Pi's own lifecycle events. Transport progress, shell state, and agent state remain separate so one weak signal does not overwrite another.


WebSocket transport

A shared binary WebSocket connection carries subscriptions for multiple terminals. It handles output, input, resizing, snapshots, session events, reconnects, and activity metadata. Reverse proxies must preserve WebSocket upgrades.


Integrated Server

The integrated server owns both the browser app and the terminal backend. It connects Workspace storage, HTTP routes, PTY processes, WebSocket streams, and the local socket used by extensions. Next-only development or start scripts omit this backend.

  • Next.js for the browser UI
  • Express for local /api/* routes
  • node-pty for local pseudo-terminal processes
  • Workspace storage for Workspace definitions and counts
  • WebSocket streaming for terminal output and input
  • API socket for fast local status updates from extensions

API Reference

The dashboard, Pi extension, and MCP adapter build on VibeGhost's HTTP API. Direct API calls are useful for local debugging and authorized automation. Browser cookies, loopback trust, and MCP bearer credentials are different authentication mechanisms.

Current endpoints
GET    /api/workspaces
POST   /api/workspaces
PATCH  /api/workspaces/:workspaceId
DELETE /api/workspaces/:workspaceId

GET    /api/sessions?workspaceId=default
GET    /api/sessions?allWorkspaces=1
GET    /api/sessions/:id
GET    /api/sessions/identify?tty=...&cwd=...&pid=...
POST   /api/sessions
PATCH  /api/sessions/:id
POST   /api/sessions/:id/input
GET    /api/sessions/:id/inspect?mode=semantic
GET    /api/sessions/:id/inspect?mode=raw
DELETE /api/sessions/:id
DELETE /api/sessions/:id/cleanup

Pass an exact workspaceId when listing or creating sessions. ReserveallWorkspaces=1 for deliberate host-wide discovery.


Files and source control

The inspector opens beside a session and starts from that session'sworkingDir. Browse files, open several tabs, edit text in the current textarea editor, save or download files, and inspect unified diffs. Save before moving to another session because not every route change warns about a dirty file.

Changes and History show repository status, staged and unstaged files, and recent commits. You can stage, unstage, revert, pull, push, and commit staged work with a message you write. Revert and remote Git actions affect the host repository. The current inspector has neither Monaco nor AI commit-message generation.

Source control actions affect the local repository. Review the selected files and diff before staging, reverting, or committing anything.

Using VibeGhost as a software factory

A software factory is a repeatable way to move from an idea to reviewed, working software. VibeGhost supplies the control surface: durable terminals, project context, visible changes, and a place for a person to supervise the work. Your repositories, agents, databases, tests, and deployment tools still do their usual jobs.

The maintainers use this model with Pi Coding Agent, the VibeGhost session extension, and Workspace Memory. Those tools are useful for coordination, but they do not make the process autonomous. People still set priorities, limit scope, approve migrations, inspect diffs, test behavior, and decide what ships.

This workflow uses Pi Coding Agent, the VibeGhost session extension, and Workspace Memory. They are optional additions to VibeGhost, not requirements for ordinary terminal use.

How the pieces fit

VibeGhost primitiveRole in the workflow
WorkspaceOne product or long-lived program, including sessions from several related repositories.
Working directoryThe exact repository or folder used for the terminal cwd, file browser, and Git operations.
SessionA process with one job, such as coordination, implementation, tests, runtime, migration, or review.
Titles and tagsShort labels that make each session's purpose and type visible.
Files and GitThe review surface for source, diffs, staging, commits, and follow-up work.
Workspace MemoryCompact Pi context for stable rules and lessons. Detailed history stays in the repository or session search.
Mobile accessA way to read output, answer prompts, or intervene while the processes continue on the host.

1. Choose a useful Workspace boundary

Create one Workspace for the product or program you expect to operate over time. It can include an application, a separate storefront, documentation, and infrastructure repositories. Each session still points to one exact workingDir, so file and Git operations remain tied to the correct checkout.

Avoid both extremes. A Workspace for every small task fragments context, while one Workspace for unrelated products mixes priorities and memory. If two products have different data models, release risks, or owners, give them separate Workspaces even when they share an architecture.

2. Keep one coordinating session

A long-lived orchestrator can inspect the current state, divide work, create focused sessions, and reconcile the results. Its job is coordination, not making every source change itself. Before delegating, it should know the repository rules, test commands, active runtime and database, migration owner, and which files can safely change in parallel.

Example Workspace
Example product
├── orchestrator     context, assignments, handoffs
├── account flow     focused implementation
├── access review    focused audit
├── server           long-running development runtime
├── tests            typecheck and regression output
└── migration        schema generation and verification

3. Give each worker one outcome

A worker is easier to review when its assignment is bounded. Name the intended result, files or feature slice, constraints, checks, and completion criteria. Separate runtime and migration sessions keep long-lived processes and data changes from disappearing when an implementation agent exits.

  • Implementation sessions own one feature or defect.
  • Audit sessions inspect architecture, security, parity, or documentation without writing unless asked.
  • Runtime sessions keep servers, logs, and watchers alive.
  • Migration sessions own database selection, generation, application, and verification.
  • Review sessions inspect a completed slice and run checks before integration.
Parallel writers should own different feature slices. If two sessions must touch the same files, assign one integration owner and make the overlap explicit before work begins.

4. Put shared context in the right place

Turn on Workspace Memory only in Pi sessions that need it. Save compact facts that should survive between sessions: stable environment details, product boundaries, repository rules, user preferences, and lessons that are expensive to rediscover.

Pi session bootstrap
/workspace memory on

# Reload memory written by another session:
/workspace memory refresh

Plans, audit reports, migration notes, feature matrices, and progress updates belong in repository files or session search. Memory can point to those records but should not replace them. Deliberate cross-Workspace operations use one exact stable ID; they do not merge memory pools.

5. Separate source work from runtime and data

Keep the running application in its own session. Before a migration or destructive test, state which database is in use: the existing development database, a reusable isolated database, or a fresh disposable one. Record who owns migrations and what must be verified afterward.

A clean source diff does not prove the feature works. Generated files may be stale, schema changes may be unapplied, seed data may no longer fit, or the real browser flow may fail. Test against the intended runtime and data state.

6. Review before integrating

Treat a worker's completion message as a handoff, not proof. Use the correct working directory to inspect every changed and untracked file, then run the checks that match the change.

  1. Read the handoff and note anything the worker did not verify.
  2. Check the diff for unrelated edits, secrets, generated noise, and destructive operations.
  3. Run targeted tests before broader type, lint, build, and migration checks.
  4. Exercise the browser or API flow when correctness depends on runtime behavior.
  5. Stage and commit only the reviewed slice, or send back a specific follow-up task.

7. Supervise without watching every terminal

Titles, tags, lifecycle state, activity signals, and bounded inspection show which sessions are working, waiting, idle, or finished. From a protected mobile connection, you can read output, answer a prompt, or send a control key while the host keeps running.

With the Pi session extension, an orchestrator can discover sessions, inspect semantic activity, start a visible worker terminal, and send one complete assignment. Workspace Memory supplies shared operating rules; it does not replace source review or user approval.

8. Leave evidence for the next cycle

At the end of a work cycle, update the repository's progress or decision records, store only durable memory, and list remaining risks. The next session should be able to start from files and test results rather than reconstructing the project from terminal scrollback.

How the maintainers use this for Openfront

VibeGhost grew out of work on Openfront, a family of open-source business applications. Each vertical gets its own Workspace, product model, runtime, tests, migrations, and security review. Shared architecture helps with setup, but a hotel booking lifecycle is not a renamed restaurant order, and healthcare software has different safety and privacy needs.

E-commerce
Coffee shop
Restaurant
Barbershop
Salon
Gym
Convenience
Grocery
Rental
Hotels
Real estate
Analytics
Dealership
Law firm
Construction
Hospital
Pharmacy
Airline

Openfront is one example, not a VibeGhost requirement. The same Workspace, session, runtime, and review model works for unrelated repositories and software stacks.

Begin with one clear Workspace, an accountable coordinator, focused workers, an explicit runtime and data plan, visible diffs, and review gates. Add automation only where it makes that process easier to understand and control.