Neox Agent SDK
The same agent runtime the Neox client uses, open source under Apache-2.0. Embed it in your product and bring your own models.
$git clone https://github.com/neoxlabs/OpenNeoxThree steps
The npm package is not published yet. Each path below was verified on a fresh clone.
Install, build the packages, and run a bundled example. 06-mock needs no API key.
git clone https://github.com/neoxlabs/OpenNeox
cd OpenNeox
npm ci && npm run build:packages
npx tsx packages/sdk/examples/06-mock.tsPack a tarball from the SDK folder (the kernel is inlined, about 0.9 MB) and install it as a local file.
cd packages/sdk && npm pack
# in your project
npm install /path/to/neoxlabs-sdk-2.7.0.tgz zodBring a provider key and requests go direct, or use one Neox Platform key for several providers, billed per use.
export ANTHROPIC_API_KEY=sk-... # your own key
# or Neox Platform
export NEOX_API_KEY=sk-neox-...Code samples
Minimal run, a tool, streaming, built-ins, Neox Platform, offline mock, bring your own key.
import { Agent } from '@neoxlabs/sdk';
const agent = new Agent({ model: 'claude-sonnet-4-6' });
const res = await agent.run('Explain the CAP theorem in one sentence');
console.log(res.text);
console.log(res.usage); // { inputTokens, outputTokens, ... }
console.log(res.stopReason); // 'end_turn' | 'max_steps' | 'tool_error' | ...SDK capabilities
Six primitives. The full API surface.
AgentThe executor: model, tools, permission, capstool()A Zod schema plus a handlerprovider()Model config: type, key, baseURLAgentEventStreaming event union with ten typesSessionMulti-turn context: fork, persist, resumemockLlm()A scripted offline model for tests and CISource
The SDK lives in the OpenNeox repository and shares its runtime with the Neox client. Accounts, subscriptions and the model gateway are not part of the open-source release.
The source is on GitHub
Apache-2.0. Issues and pull requests are welcome.


