Pgclaw – A "Clawdbot" in every row with 400 lines of Postgres SQL
Hi HN, Been hacking on a simple way to run agents entirely inside of a Postgres database, "an agent per row". Things you could build with this: * Your own agent orchestrator * A personal assistant with time travel * (more things I can't think of yet) Not quite there yet but thought I'd share it in its current state.
Pgclaw – A "Clawdbot" in every row with 400 lines of Postgres SQL launched on February 12, 2026 with 48 votes, #586 of 16,627 launches that month and more than 95% of that year's launches.
In plain words
Pgclaw is a Postgres-based system that runs AI agents directly within a database, with one agent per row. Built with approximately 400 lines of SQL, it enables developers to create custom agent orchestrators and applications like personal assistants with historical capabilities. The tool is designed for those who want to manage autonomous agents using Postgres as the underlying infrastructure, though the creator notes it is still in development.
written from the facts on this page · September 2026
From the sources
A "Clawdbot" in every row with 400 lines of Postgres SQL - calebwin/pgclaw
"What if I had an AI assistant in every row of my Postgres table?" I asked myself this a few weeks back and pgclaw is what I came up with: an open-source Postgres extension that introduces a claw data type to instantiate an AI agent - either a simple LLM or an "OpenClaw" agent - as a Postgres column. With pgclaw, store your AI agents with the rest of your data. Supports: Prerequisites: Rust toolchain and PostgreSQL 17 dev headers. cargo install cargo-pgrx cargo pgrx init --pg17 download git clone https://github.com/calebwin/pgclaw.git cd pgclaw cargo pgrx install Then in postgresql.conf : shared_preload_libraries = 'pgclaw' pgclaw.api_key = 'sk-ant-...' pgclaw.database = 'mydb' Try it…from github.com
Does a similar job
all alternatives →
NanoClaw – “Clawdbot” in 500 lines of TS with Apple container isolationFeb 2026 · github.com · ▲533I’ve been running Clawdbot for the last couple weeks and have genuinely found it useful but running it scares the crap out of me. OpenClaw has 52+ modules and runs agents with near-unlimited permissions in a single Node process. NanoClaw is ~500 lines of core code, agents run in actual Apple containers with filesystem isolation. Each chat gets its own sandboxed context. This is not a swiss army knife. It’s built to match my exact needs. Fork it and make it yours.

PgQueuer – Transform PostgreSQL into a Job Queue2024 · github.com · ▲376PgQueuer is a Python job queue that uses PostgreSQL for everything — queue storage, locking, notifications. No Redis, no RabbitMQ, no separate broker to operate. If your app already has Postgres, you already have the broker. After ~2 years and 26 minor releases, 1.0 ships today as the first stable release. Strict semver from here on. Thanks to everyone who contributed and left feedback!


- PAPgcli – A CLI for Postgres with auto-completion and syntax highlighting2015 · pgcli.com · ▲227
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 22d ago · stillwet.art

FastRouter.ai▲364Route requests to the right LLM for cost, latency & quality
AI · 23d ago · fastrouter.ai
Source: Show HN post ↗
Launched alongside, February 2026
the whole month →



Lovon AI Therapy▲801Feel closer and have more fun with your partner every day!
AI · Feb 2026 · lovon.app

Hello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986. It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.
Work · Feb 2026 · wallstreetraider.com