Skip to main content

PostgresAI CLI

Reference

Install (optional)

You can run postgresai commands without installing, using npx or bunx. If you prefer to install it globally:

npm install -g postgresai

Authenticate

Authenticate via browser and store the API key locally:

postgresai auth

Install MCP (Cursor, Claude Code, Windsurf, Codex)

Install MCP integration for your AI coding tool:

postgresai mcp install

Work with issues

List issues:

postgresai issues list

View a specific issue:

postgresai issues view <issue_id>

Post a comment:

postgresai issues post_comment <issue_id> "<comment>"