mantis: open-source Claude Agent SDK port that runs on any model with one-line import
tedddyoweh · x · 2026-09-17
mantis-agent-sdk is an open-source 'Claude Code for open models':
- Drop-in migration: keeps Anthropic's claude-agent-sdk surface — existing code runs on any model by changing one import line.
- Terminal app: ships mantis, a Claude-Code-style coding agent that reads/writes/edits files, greps, runs shell commands, and renders edits as line-numbered diffs.
- Any backend: one kwarg switches between Ollama, vLLM, llama.cpp, TGI, Together, Fireworks, Groq, OpenRouter, Cerebras, OpenAI, Gemini, Modal.
- SDK mode: the same engine as a Python library with a few-line tool-calling loop; switching providers means changing one string.
Install via pip install mantis-agent-sdk. The author demos a local qwen2.5-coder:7b via Ollama building a FastAPI todo app, noting you can finally see agent cost in real time.
More from coding & agent
- Blender + AI modeling tip: design parts separately and keep everything assemblable — kevinkern · 2026-09-17
- Rene launches: an iMessage AI agent you text like a friend, no app needed — hey_abusiddik · 2026-09-17
- AI agent ports and optimizes CUDA attention kernel to CuTeDSL in an afternoon, 1.2x faster — knowrohit07 · 2026-09-17
- How much of computer-use AI gains come from accessibility trees vs screenshots? — peterjliu · 2026-09-17
- Vercel's 27.5KB WebGPU lexer model sparks wave: 5 browser-side tiny models in one week — iamrobotbear · 2026-09-17
- OpenClaw creator to join Cloudflare Connect 2026 panel on agentic platforms — steipete · 2026-09-17