Neurosurfer¶
Neurosurfer helps you build intelligent apps that blend LLM reasoning, tools, and retrieval — with a ready-to-run OpenAI-compatible FastAPI gateway. Start lean, add power as you go, on CPU or GPU.
-
Get started
Install the package and run your first agent in a few minutes.
-
Agents
AgenticLoop,ReactAgent, and one-shotAgentwith streaming events. -
Gateway
Serve any agent behind an OpenAI-compatible
/v1/chat/completionsAPI. -
Tutorials
Hands-on Colab notebooks from install to a full capstone project.
What's in the box¶
- Agent family —
AgenticLoop(native multi-step tool-use),ReactAgent(text-parsing ReAct for models without a native tool API), andAgent(one-shot, optionally with structured output). - Provider layer — Anthropic Claude, OpenAI, and any OpenAI-compatible server (Ollama, LM Studio, vLLM, llama.cpp) behind one
Providerprotocol. - Tools — 15+ built-in tools (web search, sandboxed Python, file ops, HTTP, headless browser, and more) plus a simple framework for your own.
- RAG — ingest → chunk → embed → retrieve → token-aware context injection.
- Graph & Workflows — a standalone DAG engine and persisted, runnable Workflow packages.
- Architect — describe a workflow in plain English; it designs and builds the graph for you.
- MCP client — connect external Model Context Protocol servers and expose their tools to agents.
- OpenAI-compatible gateway —
/v1/models+/v1/chat/completionswith SSE streaming, upstream proxying, native-agent backends, and request/response hooks. - Interactive CLI — a REPL for chat and a
servecommand for the gateway.
Install¶
See Getting Started for the full list of optional extras.
License¶
Licensed under the Apache-2.0 License. See LICENSE.