Discover and explore top open-source AI tools and projects—updated daily.
coderHTTP API for controlling coding agents like Claude Code, Goose, Aider, and Codex
Top 40.7% on SourcePulse
AgentAPI provides an HTTP interface for controlling coding agents like Claude Code, Goose, and Aider, enabling unified chat interfaces and agent-to-agent control. It targets developers building applications that leverage AI coding assistants, offering a programmatic way to interact with these tools.
How It Works
AgentAPI operates by running agents within an in-memory terminal emulator. It translates API requests into terminal keystrokes and parses the agent's output, differentiating between user and agent messages. New agent messages are identified by diffing terminal output against a previous snapshot, and common TUI elements like echoed user input or input prompts are automatically stripped to provide cleaner message data.
Quick Start & Requirements
go install github.com/coder/agentapi@latest or download release binaries.claude, aider, goose) must be installed and in the system's PATH.Highlighted Details
/openapi.json and documentation UI at /docs.POST /message), retrieving history (GET /messages), checking status (GET /status), and streaming events (GET /events).attach command for direct terminal session interaction.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The logic for stripping TUI elements may require updates if the underlying agents significantly change their terminal output structure.
1 day ago
1 day
SilasMarvin
JoshuaC215