A pure-shell AI agent runtime and framework. Lightweight, universal, and highly portable — built with Bash 3.2+ and requires only jq, curl, and socat.
- Runtime: Bash shell scripts (no Node.js/Python required for core)
- HTTP Server:
socat-based pure-Bash HTTP gateway - UI: Static vanilla JS/HTML/CSS dashboard (
ui/) - Entry point:
./bashclaw(main CLI) - Config:
~/.bashclaw/bashclaw.json - State dir:
~/.bashclaw/
bashclaw— Main CLI executablelib/— Core library modules (agent, config, session, tools, etc.)gateway/http_handler.sh— HTTP request handler (spawned per connection by socat)ui/— Web dashboard (index.html, app.js, style.css)channels/— Messaging integrations (Telegram, Discord, Slack, Feishu)mcp/— Model Context Protocol serverpython_tools/— Optional Python code analysis toolstests/— Shell-based test suite
The gateway starts on port 5000 via socat:
./bashclaw gateway -p 5000Dashboard available at: http://localhost:5000
Config file: ~/.bashclaw/bashclaw.json
Set API keys in ~/.bashclaw/.env:
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
socat— HTTP server (installed via Nix)jq— JSON processing (available by default)curl— API calls (available by default)
- Start application:
bash /home/runner/workspace/bashclaw gateway -p 5000 - Port: 5000 (webview)