Agents belong on the device.
agentlib is an open-source project by Neul Labs. We build for the device because that's where the user is.
Thesis
Most of the agent ecosystem assumes a server. That's a fine assumption for the back office — it falls over the moment the agent has to drive a phone, talk to the user's contacts, or run while the user is on a train. We think the device is the more important agent surface, and that the right SDK for it looks materially different from the Python/Node tooling that's emerged so far.
What we believe
- On-device first. Most agent work doesn't need a frontier cloud model. Foundation Models, Gemini Nano, llama.cpp, and MediaPipe are good enough for 80% of mobile agent tasks — and they're private, free, and offline.
- Same code on-device and cloud.
ModelRoutelets the app pick the cheapest capable provider per request without branching in app logic. - Claude-Code-grade primitives. Subagents, skills, snapshots, hooks, a Unix-shell-shaped tool surface — these are the primitives frontier LLMs are most fluent in. Mobile shouldn't have less of that than a laptop CLI.
- Sandbox-safe by design. No
exec, no Node subprocess, no real filesystem escape. iOS reviewers should be happy. - OS lifecycle is a first-class concern. Suspend, resume, push-resume, low battery, network change — every one is a hook.
Who's building it
agentlib is built by Neul Labs, the same team that ships closegate (open-source policy gate for finance AI agents) and a handful of other developer tools. We're small, open about what we ship, and biased toward building durable open-source primitives instead of hosted services.
License
agentlib is MIT-licensed. Use it commercially, fork it, vendor it. Attribution appreciated; not required.
Get in touch
- Issues + discussions: github.com/neul-labs/agentlib
- Email: contact@neullabs.com
- Security: security@neul-labs.com