OpenAI-compatible
Point it at Ollama, OpenAI, OpenRouter, or any endpoint exposing /v1/chat/completions. Register several and pick one at startup.
LambAI keeps the surface small and the behaviour legible, so you can trust what it does and understand why. Here's the whole story.
Point it at Ollama, OpenAI, OpenRouter, or any endpoint exposing /v1/chat/completions. Register several and pick one at startup.
Tools declared with JSON-schema parameters and returned as structured tool_calls, chained for up to 10 rounds per turn.
Read with offset/limit, write, edit, grep, glob, tree, git, build/test, todos, memory, and web_fetch — all size-capped.
A reference implementation of an agent loop in a few small V modules. No frameworks, no magic — read it in an afternoon.
V standard library plus curl. No node_modules, no lockfile archaeology, no supply-chain surprises.
Agent profiles with tool allowlists, a write policy with confirmation, and protected paths the agent can never touch.
Every edit is snapshotted first. Restore any file to its previous state with fs_restore, or browse the history with the snapshots tool.
Transcripts are plain JSONL under .lambai/sessions. List, resume, or export any of them — no database, no lock-in.
Tool output is capped in bytes, the agent loop is capped in rounds, and the shell runs with a cleared environment. Nothing runs away.
The fastest code to reason about is the code that isn't there. LambAI deliberately leaves a few things out.