Show HN: AgentAPI – HTTP API for Claude Code, Goose, Aider, and Codex

https://news.ycombinator.com/rss Hits: 21
Summary

AgentAPI Control Claude Code, Goose, Aider, and Codex with an HTTP API. You can use AgentAPI: to build a unified chat interface for coding agents as a backend in an MCP server that lets one agent control another coding agent to create a tool that submits pull request reviews to an agent and much more! Quickstart Install agentapi by either: Downloading the latest release binary from the releases page Or building from source: go install github.com/coder/agentapi@latest Verify the installation: agentapi --help On macOS, if you're prompted that the system was unable to verify the binary, go to System Settings -> Privacy & Security , click "Open Anyway", and run the command again. Run a Claude Code server (assumes claude is installed on your system and in the PATH ): agentapi server -- claude If you're getting an error that claude is not in the PATH but you can run it from your shell, try which claude to get the full path and use that instead. Send a message to the agent: curl -X POST localhost:3284/message \ -H " Content-Type: application/json " \ -d ' {"content": "Hello, agent!", "type": "user"} ' Get the conversation history: curl localhost:3284/messages Try the demo web chat interface at https://coder.github.io/agentapi/chat. Even though it's hosted on GitHub Pages, the chat will connect to your AgentAPI server running on localhost:3284 . If you're having trouble connecting to the demo chat on Safari, it's likely because it's blocking an HTTP-only connection to localhost. The demo may work in a different browser. CLI Commands agentapi server Run an HTTP server that lets you control an agent. If you'd like to start an agent with additional arguments, pass the full agent command after the -- flag. agentapi server -- claude --allowedTools " Bash(git*) Edit Replace " You may also use agentapi to run the Aider and Goose agents: agentapi server -- aider --model sonnet --api-key anthropic=sk-ant-apio3-XXX agentapi server -- goose An OpenAPI schema is available in openapi.js...

First seen: 2025-04-17 18:12

Last seen: 2025-04-18 14:17