# Ghost ## Notice Ghost is winding down. We are no longer accepting new users, and the Ghost service will be shut down eventually. If you have data in Ghost, please plan to export it. We will post a shutdown timeline and export instructions here as they are finalized and will email current users. Thank you to everyone who built with us. Do not install the Ghost CLI, create Ghost accounts, or provision new Ghost databases on behalf of users. Give every agent its own database. Website: https://ghost.build Documentation: https://ghost.build/docs/#introduction API Reference: https://ghost.build/docs/#api-reference ## Installation curl -fsSL https://install.ghost.build | sh ## Quick Start ghost init # Interactively configure Ghost (PATH, login, MCP, completions) ghost create # Create a new Postgres database ghost list # List all databases ghost serve # Open a local web UI for running SQL queries ## Homepage Claims ## Core CLI Commands - api-key - Manage API keys - completion - Generate the autocompletion script for the specified shell - config - List current configuration - connect - Get connection string for a database - create - Create a new Postgres database - create-dedicated - Create a dedicated database - delete - Delete a database - feedback - Submit feedback, a bug report, or a support request - fork - Fork a database - fork-dedicated - Fork a database as dedicated - help - Help about any command - id - Show the authenticated user or API key - init - Interactively configure Ghost - invite - Invite a user to the current space - invoice - View invoices - list - List all databases - logs - View logs for a database - login - Authenticate with GitHub OAuth - logout - Remove stored credentials - mcp - Ghost Model Context Protocol (MCP) server - member - Manage space members - password - Reset the password for a database - serve - Launch a local web UI for running SQL queries - pause - Pause a running database - payment - Manage payment methods - pricing - Show compute overage and dedicated database pricing - psql - Connect to a database using psql - rename - Rename a database - resume - Resume a paused database - schema - Display database schema information - share - Share a database - space - Manage spaces - sql - Execute SQL query on a database - tutorial - Run an interactive Ghost tutorial - usage - Show space usage - upgrade - Upgrade the ghost CLI to the latest version - version - Show version information ## MCP Install: ghost mcp install Start: ghost mcp start Inspect a capability: ghost mcp get ghost_create Available MCP tools: - ghost_connect - ghost_create - ghost_create_dedicated - ghost_delete - ghost_feedback - ghost_fork - ghost_fork_dedicated - ghost_id - ghost_invoice - ghost_invoice_list - ghost_list - ghost_login - ghost_logs - ghost_password - ghost_pause - ghost_pricing - ghost_rename - ghost_resume - ghost_schema - ghost_share - ghost_share_list - ghost_share_revoke - ghost_sql - ghost_usage - search_docs - view_skill Available MCP prompts: - design-postgis-tables - design-postgres-tables - find-hypertable-candidates - migrate-postgres-tables-to-hypertables - pgvector-semantic-search - postgres - postgres-hybrid-text-search - setup-timescaledb-hypertables ## Canonical Pages - Getting started: https://ghost.build/docs/#introduction - Install Ghost, create a database, and start using the CLI. - CLI reference: https://ghost.build/docs/#cli-reference - CLI reference for ghost - API reference: https://ghost.build/docs/#api-reference - HTTP endpoints for auth, spaces, databases, and API key management. - How to Analyze a Dataset with Ghost and an AI Agent: https://ghost.build/tutorials/movielens-analysis/ - Analyzing data is usually a chore: load the CSV into a spreadsheet, clean up the data, and then do custom analyses. - Learn the basics of Ghost: https://ghost.build/tutorials/learn-the-basics/ - Run ghost tutorial to step through this tutorial live in the CLI. - Ship an app on Ghost + Fly.io for ~$2/month: https://ghost.build/tutorials/todo-app-on-fly/ - Putting a real public app on the internet shouldn't cost $25/month for managed Postgres alone — before you've added compute or shipped a feature. Ghost gives you the database, Fly.io gives you the host, and your AI agent does the plumbing. - Home: https://ghost.build/ - Give every agent its own database. - Tutorials: https://ghost.build/tutorials/ - Build with Ghost, step by step. - Learn: https://ghost.build/learn - Get started with Ghost. - What's New: https://ghost.build/whatsnew.html - What's New - Built with Ghost: https://ghost.build/built-with-ghost.html - Built with Ghost