
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
This will connect a local postgres database to the pgchat agent.
npx pgchat postgresql://user:pass@localhost:5432/db
npx pgchat <POSTGRES_CONNECTION_STRING> [options]
Options:
--approval-mode Approval mode: "always" (all queries), "mutate" (only
data-modifying queries), or "off"
[string] [choices: "always", "mutate", "off"] [default: "always"]
--privacy-mode Enable privacy mode. All data will be returned as blobs
(not sent to the model) [boolean] [default: false]
--schema Database schema to use [string] [default: "public"]
--secret Inferable API cluster secret [string]
--cluster-id Inferable API cluster ID [string]
--endpoint Inferable API endpoint [string]
-h, --help Show help [boolean]
pgchat is powered using Powered by Inferable. API usage limits apply, these can be be increased by providing an Inferable API secret --secret / Cluster ID --cluster-id.
Note: When using
pgchatwithout providing an--api-secret, it will use an ephemeral Inferable cluster which is automatically cleaned up after 24 hours.
Inferable is also self-hostable for complete control over your data and privacy, pgchat can be configured to connect to a self-hosted instance of Inferable using the --endpoint flag.
All pgchat queries are proxied via a function that runs on your local machine. As a result, the execution environment is completely isolated.
By default, pgchat runs in approval mode, which means that all queries are sent to the model for review before execution. You will see the query in the terminal before it is executed.
pgchat uses Inferable's Node.js SDK to ferry commands from your local machine to the Inferable Control Plane. The SDK works with long polling the agent.
Yes by default. However, you can opt out of this by running with --privacy-mode. The tradeoff is that you won't get the benefits of the LLM's reasoning on your data. (This uses Inferable's blob storage to return data to your terminal without sending it to the model.)
Inferable is an open-source platform for building AI agents that interact with your internal systems that don't have public APIs (like a small service that wraps a Postgres database). For more, see Inferable. pgchat uses Inferable's free tier, chat state management, durable execution engine and the Re-Act agent to bring this to life.
FAQs
Chat CLI for Postgres powered by inferable.ai
We found that pgchat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.