Omnara发布开源持久化智能体API
Omnara创始人Kartik在Show HN上发布了一个用于运行持久化智能体的开源API:通过一次API调用创建智能体后,由Omnara运行智能体循环、为其提供执行命令的沙箱,并处理密钥、权限与RBAC。据该创始人介绍,每个智能体的状态以追加式事件日志的形式存储在Postgres中,因此智能体可在重启后继续存在,空闲时不产生成本,客户端还可以通过API向智能体发送消息并流式接收其事件。代码库已开源并可自托管,甚至可用Docker Compose在单机上运行;Omnara将其定位为开源替代方案,对标其归为Anthropic和OpenAI的托管产品Claude Managed Agents与OpenAI Agents API。
Omnara将智能体日志放在Postgres中,循环的每一轮迭代由无状态worker执行并以单个事务提交结果;其创始人将这一做法与Claude Code等将循环放在单一长驻进程、日志写入JSONL或SQLite的harness相对比。
Hey all, Kartik from Omnara (https://omnara.com) here. We're building an open-source API for running durable agents. You create an agent with an API call, and Omnara runs the agent loop, gives the agent sandboxes to run commands in, and handles secrets, permissions, and RBAC. Each agent's state is stored in Postgres, so agents survive restarts and cost nothing while idle. You can message them and stream their events over the API.
You may remember us from our early days, when we made a remote-control phone app for Claude Code and Codex. Since the harness ran on a laptop back then, we had to build a relay to reach it, it stopped when the laptop closed, and moving it to a cloud sandbox meant syncing code and agent state between machines. We didn't think remote-controlling a local agent was end-game for how people would run agents, so we built a new product where the agent runs in the cloud, any client can talk to it through an API, and it can still use your laptop as one of its machines.
#Omnara#Claude Managed Agents#OpenAI Agents API#Claude Code#Codex#Anthropic#OpenAI#Postgres