ObjectiveAI SDK
Project description
ObjectiveAI
The Swarm Harness.
Define and compose swarms of LLM agents. Spawn an agent to do things, spawn a swarm to score things, or hand a swarm a Docker sandbox — from the CLI, the SDKs, or your own agent.
Packages
SDKs published to language-native registries. Pick the one for your stack:
| Language | Package | Install |
|---|---|---|
| Rust | objectiveai-sdk |
cargo add objectiveai-sdk |
| TypeScript | @objectiveai/sdk |
npm i @objectiveai/sdk |
| Python | objectiveai-sdk |
pip install objectiveai-sdk |
| Go | objectiveai-sdk-go |
go get github.com/ObjectiveAI/objectiveai/objectiveai-sdk-go |
Additional crates on crates.io: objectiveai-api, objectiveai-cli, objectiveai-mcp, objectiveai-mcp-proxy, objectiveai-mcp-laboratory, objectiveai-sdk-macros.
Binaries
Install all four prebuilt binaries with one command:
curl -fsSL https://raw.githubusercontent.com/ObjectiveAI/objectiveai/main/install.sh | bash
export PATH="$HOME/.objectiveai/bin:$PATH"
| Binary | What it does | Download |
|---|---|---|
objectiveai |
CLI + embedded viewer | latest |
objectiveai-api |
API server | latest |
objectiveai-viewer |
Standalone Tauri desktop app | latest |
objectiveai-mcp |
MCP server (streamable HTTP) | latest |
Supported platforms: Linux x86_64, Linux aarch64, macOS x86_64, macOS aarch64, Windows x86_64. See Binaries & self-hosting for install flags and per-binary detail.
What ObjectiveAI is
ObjectiveAI is a harness for defining, composing, and running swarms of LLM agents — distributed across the CLI, the API, the SDKs, the MCP server, and your own agents. You define an Agent once — model, prompts, decoding parameters, output mode, tools, MCP servers. You compose Agents into a Swarm. You then run them in any of three ways: spawn a single agent to do work, spawn a whole swarm to collectively score candidates, or hand a swarm a Docker sandbox to act in.
Agents and Swarms are content-addressed, Git-hosted resources. The same swarm.json that powers your CLI invocation tonight is the one your colleague pins by commit SHA next month.
The mechanism is swarms: reusable, composable, version-tracked collections of configured models. Everything else (the CLI, the API, the web app, the MCP server, the SDKs in five languages) exists to drive swarms in the ways that matter.
Execution modes
Each mode resolves the same Agents and Swarms but does something different with them.
| Mode | What it does | Returns | Reach for it when |
|---|---|---|---|
| Agent completion | Spawn a single Agent to do work — call tools, talk to MCP servers, execute multi-turn loops, generate artifacts | Whatever the Agent produces | You need one agent to perform a discrete task |
| Vector completion | Spawn a swarm to score a fixed set of candidate responses — each agent votes, votes combine under weights | Vector of scores that sums to 1 | You want a calibrated, multi-model score |
Agent completions are the foundational orchestration layer; vector completions are built on top of the same underlying agent primitive.
Why a swarm scores better than one model
A single language model asked to score something hands back one sampled token and walks away from everything else it computed. The signal it had — how confident it really was, where it hedged, what it nearly chose instead — never leaves the model. ObjectiveAI is built to preserve that signal across an entire swarm.
Each agent in a swarm contributes a preference distribution over the candidates rather than a single sampled token. Those distributions combine across the swarm under weights to produce the final score. No discrete collapse. No lost signal.
Vector completion requested
│
▼
┌──────────────────────────────────┐
│ Swarm │
│ ┌────────┐ ┌────────┐ ┌──────┐ │
│ │ Agent │ │ Agent │ │ ... │ │
│ └───┬────┘ └───┬────┘ └──┬───┘ │
└──────┼──────────┼─────────┼─────┘
│ votes (preference distributions)
▼ ▼ ▼
┌────────────────────────────────┐
│ weighted combination │
└────────────────────────────────┘
│
▼
scores: [0.61, 0.28, 0.11] (sums to 1)
This matters twice over: once per model, and once across models. Different models have different failure modes and different training distributions. Combining them with weights is strictly more powerful than picking the one model that scores highest on average.
Why this system
Reusability across modes. Content-addressing throughout:
- Reusable. An Agent is a 22-character ID — define one once and reference it from any swarm or lab. A Swarm is a sorted set of
(agent_id, count)pairs. Define it once and run it for action, scoring, or sandboxed work without re-defining anything. - Reproducible. Every resource reference is
(owner, repo, commit). Pin a commit SHA, get the exact same agent / swarm your run used six months ago. - Composable. Swarms compose into bigger swarms. The CLI dispatches plugins as unknown subcommands. The viewer surfaces plugin UIs as sandboxed iframe tabs.
- Polyglot. Rust, TypeScript, Python, Go, and (in-progress) .NET SDKs share the same generated JSON Schema corpus. Field names and shapes are identical across languages.
Quick start
Install the CLI, API server, viewer, and MCP server from the latest release:
curl -fsSL https://raw.githubusercontent.com/ObjectiveAI/objectiveai/main/install.sh | bash
export PATH="$HOME/.objectiveai/bin:$PATH"
Set your API key:
objectiveai api headers x-objectiveai-authorization config set "apk_your_key_here"
CLI — spawn an agent to do work
objectiveai agents spawn \
--agent remote=github,owner=your-org,repository=writer-agent \
--inline '[{"role":"user","content":"Write a haiku about ocean waves."}]'
Pin a commit=<sha> segment to lock in a specific version of any remote resource. See Core primitives for a full explanation of Agents, Swarms, and the two execution modes, and SDKs for Python, Rust, Go, and .NET patterns including streaming.
SDK — TypeScript
import { ObjectiveAI, agentsCompletionsCreateAgentCompletion } from "@objectiveai/sdk";
const client = new ObjectiveAI({ authorization: process.env.OBJECTIVEAI_AUTHORIZATION });
const result = await agentsCompletionsCreateAgentCompletion(client, {
agent: { remote: "github", owner: "your-org", repository: "writer-agent" },
messages: [{ role: "user", content: "Write a haiku about ocean waves." }],
stream: false,
});
console.log(result);
Core primitives
Two resources (Agents, Swarms) define what's in the system; two execution modes (Agent completions, Vector completions) define what you can do with them. Resources are content-addressed Git-hosted JSON; execution modes resolve resources at request time and stream typed results back.
Agents
An Agent is a fully-specified configuration of a single upstream model: model identity, prompt structure, decoding parameters, output mode, tools, MCP servers, provider preferences. Agents are content-addressed via XXHash3-128 — the same configuration always produces the same 22-character base62 ID. IDs are deterministic because the serialized configuration is hashed after normalization (empty fields stripped, defaults canonicalized). Two Agents with identical effective settings are the same Agent.
Agents are stored as agent.json in Git repositories and referenced by owner/repo@commit everywhere a swarm needs an agent. Authoring agents lives in source control; calling them happens by reference.
{
"description": "Skeptical evaluator",
"upstream": "openrouter",
"model": "openai/gpt-4o",
"output_mode": "json_schema",
"temperature": 0.2,
"prefix_messages": [
{ "role": "system", "content": "You are a rigorous critic. Challenge assumptions." }
]
}
Each upstream (OpenRouter, Claude Agent SDK, Codex SDK) has its own agent type with its own parameter set. The same Agent can be driven in either execution mode — running solo in an agent completion, or contributing to the swarm's score in a vector completion.
Swarms
A Swarm is an ordered collection of Agents used together to score collectively. Swarms are immutable and content-addressed — their ID is computed from the sorted (full_id, count) pairs of their constituent agents. Weights are not baked into the swarm definition; they are execution-time parameters supplied with the request.
Each agent slot has a count (number of instances) and optional fallbacks. Duplicate agents are merged and their counts summed. The total agent count across all slots must be between 1 and 128.
{
"description": "Balanced scoring panel",
"agents": [
{
"upstream": "openrouter",
"model": "openai/gpt-4o",
"output_mode": "json_schema",
"prefix_messages": [
{ "role": "system", "content": "You are a rational skeptic. Ground every choice in logic." }
],
"count": 2
},
{
"upstream": "openrouter",
"model": "anthropic/claude-sonnet-4-20250514",
"output_mode": "tool_call",
"suffix_messages": [
{ "role": "system", "content": "You are an intuitive thinker. Trust your instincts." }
],
"count": 1
}
]
}
Swarms are stored as swarm.json in Git repositories and shared across runs. Because weights are external, the same swarm can be reused with different weight configurations without creating a new swarm.
Agent completions
An agent completion spawns a single Agent to do work. The Agent receives a task as a conversation and acts on it — calls tools, talks to MCP servers, executes a multi-turn loop, writes code, generates artifacts. Vector completions are built on top of agent completions; they're multi-agent orchestrations of the same underlying primitive.
The Agent is supplied by remote reference. Messages can include images, audio, and files in addition to text. Tool calls are detected mid-stream and executed automatically; MCP servers attached to the Agent are dialed transparently. The response carries a Continuation that captures the conversation state so the next call can pick up where this one left off.
{
"agent": { "remote": "github", "owner": "your-org", "repository": "writer-agent" },
"messages": [
{ "role": "user", "content": "Rewrite this commit message as a conventional-commits changelog entry." }
]
}
CLI: objectiveai agents spawn --agent remote=github,owner=...,repository=... --inline '...'. SDK: agentsCompletionsCreateAgentCompletion (JS) / create_agent_completion (Python) / agent::completions::http::create_agent_completion (Rust).
Vector completions
A vector completion spawns a swarm to score a fixed set of candidate responses. It takes a prompt plus the candidate responses, runs an agent completion across every Agent in the swarm, and each Agent votes for one of the candidates. Rather than collapsing to a single sampled token, ObjectiveAI reads each Agent's logprobs to capture its full preference distribution over the candidates. The votes combine under per-agent weights — execution-time parameters, never baked into the swarm — into a final score vector that sums to 1, one entry per candidate.
Large candidate sets are handled transparently by internal machinery (a prefix tree structured around the logprobs limit), so a single vector completion can score across hundreds of candidates while preserving the probability signal.
{
"swarm": { "remote": "github", "owner": "your-org", "repository": "scoring-swarm" },
"messages": [{ "role": "user", "content": "Rate this response: ..." }],
"responses": ["poor", "mediocre", "good", "excellent"]
}
CLI: the objectiveai vector command group. Both execution modes stream typed chunks over Server-Sent Events.
The resource graph
All resources reference each other via (owner, repository, commit) triples. Content-addressing plus commit pinning makes the full graph reproducible from any entry point.
agent.json <- swarm.json
(agents)
Remote references resolve lazily: the retrieval system walks the graph starting from the execution request, fetching and caching each resource exactly once. Deduplication is by (owner, repo, commit) triple. All fetches are content-verified — a cached resource is never re-fetched if the commit SHA matches.
SDKs
Every SDK exposes the same two execution modes: Agent Completions (spawn a single Agent to do work — tools, MCP, multi-turn loops) and Vector Completions (spawn a swarm to score candidates). Both support streaming via Server-Sent Events. The API emits incremental chunks; each SDK merges them into an accumulating object using an immutable merge system (TypeScript), a mutable push system (Python, Rust, Go), or equivalent. Types are generated from a shared JSON Schema corpus derived from the Rust SDK, so field names and shapes are identical across languages.
Languages
| Language | Package | Install | Runtime targets |
|---|---|---|---|
| Rust | objectiveai-sdk on crates.io |
cargo add objectiveai-sdk |
Any (async via reqwest + tokio) |
| TypeScript | @objectiveai/sdk on npm |
npm i @objectiveai/sdk |
Node.js, Deno, browser (CJS + ESM) |
| Python | objectiveai-sdk on PyPI |
pip install objectiveai-sdk |
CPython 3.10+ (includes PyO3 extension) |
| Go | github.com/ObjectiveAI/objectiveai/objectiveai-sdk-go |
go get github.com/ObjectiveAI/objectiveai/objectiveai-sdk-go |
Go 1.26+ |
| .NET | ObjectiveAI (NuGet — in progress) |
not yet published | net10.0 |
Streaming examples
The base URL defaults to https://api.objectiveai.dev in all SDKs. Auth is passed as OBJECTIVEAI_AUTHORIZATION (env var) or via the client constructor. Each example spawns an agent with stream: true and consumes the streamed chunks.
TypeScript
import { ObjectiveAI, agentsCompletionsCreateAgentCompletion } from "@objectiveai/sdk";
const client = new ObjectiveAI({ authorization: process.env.OBJECTIVEAI_AUTHORIZATION });
const stream = await agentsCompletionsCreateAgentCompletion(client, {
stream: true,
agent: { remote: "github", owner: "your-org", repository: "writer-agent" },
messages: [{ role: "user", content: "Write a haiku about ocean waves." }],
});
for await (const chunk of stream) {
process.stdout.write(JSON.stringify(chunk) + "\n");
}
Python
import asyncio, os
from objectiveai_sdk.client import ObjectiveAI
from objectiveai_sdk.agent.completions.http import create_agent_completion
async def main() -> None:
client = ObjectiveAI(authorization=os.environ.get("OBJECTIVEAI_AUTHORIZATION"))
params = {
"stream": True,
"agent": {"remote": "github", "owner": "your-org", "repository": "writer-agent"},
"messages": [{"role": "user", "content": "Write a haiku about ocean waves."}],
}
stream = await create_agent_completion(client, params)
acc = None
async for chunk in stream:
if acc is None:
acc = chunk
else:
acc.push(chunk)
print("output:", acc)
asyncio.run(main())
Rust
use futures::StreamExt;
use objectiveai_sdk::{HttpClient, agent::completions};
#[tokio::main]
async fn main() -> Result<(), objectiveai_sdk::HttpError> {
let client = HttpClient::builder()
.authorization(std::env::var("OBJECTIVEAI_AUTHORIZATION").ok())
.build();
let mut stream = completions::http::create_agent_completion_streaming(
&client,
completions::request::params(/* agent: remote ref, messages */),
).await?;
while let Some(Ok(chunk)) = stream.next().await {
println!("{chunk:?}");
}
Ok(())
}
Go and .NET
The Go SDK is fully auto-generated from the JSON Schema corpus. Types are strict-validated on unmarshal. The client exposes generic helpers PostUnary[T] / PostStreaming[T] / GetUnary[T] / DeleteUnary[T]; endpoint functions wrap these. A wazero-hosted WASM binary (compiled from the Rust core) provides chunk-to-unary conversion and merge verification without CGO.
The .NET SDK (ObjectiveAI, targeting net10.0) is in active development. The NuGet publish workflow is not yet wired up, so it must be built from source for now.
Binaries & self-hosting
curl -fsSL https://raw.githubusercontent.com/ObjectiveAI/objectiveai/main/install.sh | bash
export PATH="$HOME/.objectiveai/bin:$PATH"
All four binaries land in ~/.objectiveai/bin/ and are added to PATH. The CLI (objectiveai) self-updates on startup; re-run the installer to upgrade objectiveai-api, objectiveai-viewer, and objectiveai-mcp.
objectiveai (CLI)
The primary user-facing binary. Built with clap derive macros and emits newline-delimited JSON (NDJSON) on stdout. Top-level command groups: agents, swarms, vector, plugins, logs, instructions, schemas, api, viewer.
objectiveai agents list
objectiveai agents spawn --agent remote=github,owner=...,repository=... --inline '...'
objectiveai plugins install github --owner ObjectiveAI --repository my-plugin
The default build embeds the Tauri viewer as a sidecar: running a streaming command opens a live viewer window backed by an in-process HTTP server. Pass --no-viewer at install time for a smaller build without the embedded viewer. JSON schemas for every public type are accessible at objectiveai schemas list / objectiveai schemas output <name>.
objectiveai-api
Standalone HTTP API server. Run it with:
objectiveai-api
Key environment variables (all optional):
| Variable | Default | Effect |
|---|---|---|
ADDRESS |
0.0.0.0 |
Bind address |
PORT |
5000 |
Bind port |
OBJECTIVEAI_ADDRESS |
https://api.objectiveai.dev |
Upstream ObjectiveAI address when proxying |
OBJECTIVEAI_AUTHORIZATION |
— | Bearer token for the ObjectiveAI API |
OPENROUTER_AUTHORIZATION |
— | Bearer token for OpenRouter |
GITHUB_AUTHORIZATION |
— | GitHub token for resource retrieval |
MCP_AUTHORIZATION |
— | Bearer token for outbound MCP calls |
The server is streaming-first: every layer (agent completions, vector completions) produces a typed stream of chunks and yields immediately to the HTTP response — nothing is buffered in the hot path.
objectiveai-viewer
Standalone Tauri desktop application. Presents the same UI that the CLI embeds as a sidecar, but runs as a first-class window manager process rather than being spawned in-process by a CLI command. Reach for it when you want the viewer always open and decoupled from CLI invocations.
objectiveai-mcp
MCP (Model Context Protocol) server built from objectiveai-mcp. Exposes ObjectiveAI's tooling over the streamable-HTTP MCP transport so editors and agents (Claude, Cursor, etc.) can invoke it via the standard MCP protocol. Defaults to 0.0.0.0:3000; override with ADDRESS and PORT.
Three crates make up the MCP surface:
objectiveai-mcp— the primary MCP surface. Wraps the CLI as MCP tools over streamable-HTTP. What users run locally and expose upstream for distributed agents.objectiveai-mcp-proxy— a multiplexing sidecar ofobjectiveai-api. Terminates an MCP client connection and forwards tool calls to an upstream MCP server or to ObjectiveAI-native tools. Embedded insideobjectiveai-apiat runtime.objectiveai-mcp-laboratory— MCP filesystem helpers (read/write/list) adapting the SDK's filesystem layer to MCP tool calls.
Install flags
Pass flags to bash -s -- after the installer URL:
curl -fsSL https://raw.githubusercontent.com/ObjectiveAI/objectiveai/main/install.sh | bash -s -- --no-viewer
| Flag | Effect |
|---|---|
--no-viewer |
Skips the standalone objectiveai-viewer; installs the CLI variant without an embedded Tauri viewer (smaller binary). |
--no-api |
Skips objectiveai-api. |
--no-mcp |
Skips objectiveai-mcp. |
--cli-only |
Equivalent to --no-viewer --no-api --no-mcp. Only objectiveai is installed. |
Flags compose freely.
Self-host vs hosted
The hosted API at https://api.objectiveai.dev requires no setup and is the default for the CLI and all SDKs. Run your own objectiveai-api when you need total control over data routing — for example, to point agents at private upstream providers not available on OpenRouter, to meet on-prem or air-gapped requirements, or to run the full execution pipeline locally without network egress. Configure the CLI to point at your instance with objectiveai api mode set local and objectiveai api local address set http://localhost:5000.
Supported platforms: Linux x86_64, Linux aarch64, macOS x86_64, macOS aarch64 (Apple Silicon), Windows x86_64.
Plugins
A plugin is a binary that adds new top-level subcommands to the ObjectiveAI CLI, optionally paired with a viewer UI tab. Plugins are described by an objectiveai.json manifest at the repository root. The CLI dispatches any unknown top-level subcommand to the matching installed plugin binary, communicating over a JSONL protocol on stdout. The viewer surfaces plugins with a declared UI source as sandboxed iframe tabs, isolated from the host DOM.
First-party plugins
Built and maintained by ObjectiveAI:
- psychological-operations — run autonomous persona agents on X (Twitter) and Discord. Each agent is an X account plus a Discord bot, addressed by a tag, with tool-mediated presence on both platforms (the
xanddiscordMCP servers), scored ingestion pipelines ("psyops" that pull posts/messages, score them through a swarm, and deliver the survivors to agents' work queues), and event-driven wake-ups from a resident daemon that fires when an agent is mentioned, replied to, or DM'd. - mundus-animarum — persistent, self-authored "souls" for agents. A key/value store keyed by an agent's content-addressed ID, with cross-agent lookups, subscriptions, and change notifications; every instance of the same agent definition shares one soul, which the agent can rewrite over time.
- arcanum — skills for agents. Lets agents load skills and governs which agents may use which skills.
- quas-wex-exort — programmatic invocation of MCP tools and the ObjectiveAI CLI from within an agent, including running them as background tasks (create / list / wait / cancel) and batched multi-calls.
Installing a plugin
Install from a public GitHub repository:
# From the ObjectiveAI org (default whitelist — no extra flags needed).
objectiveai plugins install github --owner ObjectiveAI --repository my-plugin
# Pin to a specific commit.
objectiveai plugins install github --owner ObjectiveAI --repository my-plugin --commit-sha <sha>
# Third-party repository — requires explicit opt-in.
objectiveai plugins install github --owner third-party --repository my-plugin --allow-untrusted
# Replace an existing install (binary, viewer bundle, and manifest are rewritten).
objectiveai plugins install github --owner ObjectiveAI --repository my-plugin --upgrade
To print layout and manifest conventions for placing a plugin by hand in ~/.objectiveai/plugins/:
objectiveai plugins install filesystem
Plugin manifest
objectiveai.json at the repository root declares the plugin's metadata, platform binaries, and optional viewer source. All fields except description and version are optional.
| Field | Type | Notes |
|---|---|---|
description |
string | Required. One-line summary shown in listings. |
version |
string | Required. Used to construct release-asset URLs (releases/download/v<version>/<asset>). |
author / homepage / license |
string | Optional metadata. |
binaries |
object | Map of <os>_<arch> → release-asset filename. Supported keys: linux_x86_64, linux_aarch64, windows_x86_64, windows_aarch64, macos_x86_64, macos_aarch64. Declare only platforms you ship. |
viewer_zip |
string | Release-asset filename for the UI bundle (a zip with index.html at root). Mutually exclusive with viewer_url. |
viewer_url |
string | Remote URL loaded as the iframe src verbatim. Must be https:// or http://localhost. Mutually exclusive with viewer_zip. |
viewer_routes |
array | HTTP routes the viewer's embedded axum server exposes on behalf of the plugin. |
mobile_ready |
bool | Opt-in for iOS/Android viewer builds. Defaults to false. |
Example:
{
"description": "Run wave-physics simulations from the CLI.",
"version": "1.0.0",
"author": "Example Corp",
"license": "MIT",
"binaries": {
"linux_x86_64": "sim-linux-x86_64",
"windows_x86_64": "sim-windows-x86_64.exe",
"macos_aarch64": "sim-macos-aarch64"
},
"viewer_zip": "sim-viewer.zip"
}
Building a plugin
A plugin binary reads its arguments from argv and writes JSONL to stdout. Each line must be one of three shapes:
{"type": "notification", "key": "value"} // data to forward to the caller
{"type": "error", "level": "warn", "fatal": false, "message": "..."}
{"type": "command", "command": "agents list"} // spawn a CLI command, fire-and-forget
The host parses stdout line-by-line; unparseable lines are forwarded as string notifications rather than dropped.
For the viewer, produce a static dist/ with index.html at the root, zip it, and reference it in viewer_zip. For remote-hosted UIs, use viewer_url. The viewer posts events to the iframe via postMessage.
To iterate locally: place the binary at ~/.objectiveai/plugins/<name>/plugin[.exe] and the manifest at ~/.objectiveai/plugins/<name>.json, then invoke objectiveai <name> <args>. The objectiveai-cli/test-fixtures/hello-plugin/ fixture is the minimal example — a single main.rs that reads argv[1] and emits one notification line.
For distribution, cut a GitHub release tagged v<version>, upload binaries and the viewer zip as release assets named exactly as declared in the manifest, then install with plugins install github.
Full reference: PLUGINS.md.
Web app & ecosystem
Web app
objectiveai.dev is the production web interface, built with Next.js (App Router). The app provides browsing and detail views for Swarms (/swarms, /{id}), and lets you run a swarm against chosen candidates and view per-agent vote breakdowns and aggregate scores. A /demo route renders live component prototypes including vote matrices, decomposition views, and contribution waterfalls.
Examples
The examples/ directory collects real software built on top of ObjectiveAI, with links to full source repositories.
psychological-operations — an agentic X (Twitter) scraper and scoring pipeline (repo). It pairs human-driven Chrome automation with ObjectiveAI to rank scraped tweets along operator-defined axes. The project defines two primary objects: Scrapes (declarative search jobs that scroll and parse x.com into SQLite) and PsyOps (scoring jobs that pull tagged posts and run them through ObjectiveAI using a chosen swarm and strategy — including Swiss System tournament-style ranking). A pilot study ranked tweets from a set of public startup-founder accounts along an unsettlingness axis; published artifacts are content-addressed and reproducible.
Ecosystem
objectiveai-claude-agent-sdk-runner— a long-lived Python stdio NDJSON server that runs concurrent Claude Agent SDK sessions on behalf ofobjectiveai-api. The Rust API caller spawns and multiplexes requests over a single stdin/stdout pair using a semaphore-backed FIFO queue; each request carries a stringidfor demultiplexing events from N concurrent streams.objectiveai-codex-sdk-runner— same architecture as the Claude runner but targets the OpenAI Codex SDK. Authentication is inherited from~/.codex/auth.json; the runner shells out to thecodexbinary and streamsThreadEventobjects back to the Rust caller.objectiveai-github-discord-notifier— a Python FastAPI webhook server (Docker-deployable) that validates GitHub webhook signatures and forwards pull-request and issue events to a configured Discord channel.objectiveai-json-schema— generated JSON Schema files for every public serializable type in the Rust SDK, named using dot-separated module paths. Several hundred schemas cover agents, swarms, completions, CLI output, MCP types, and more. These files drive code generation for the Go SDK and .NET SDK and can be used by any downstream tooling that needs machine-readable type definitions.
Repository structure
A single git repository contains the SDK core, server, clients, integrations, and tools.
objectiveai/
│
├── # SDK core (Rust)
│ ├── objectiveai-sdk-rs/ # Rust SDK — types, validation, compilation
│ ├── objectiveai-sdk-rs-macros/ # Procedural macros for the Rust SDK
│ ├── objectiveai-sdk-rs-cffi/ # C FFI bindings (expose SDK to C/C++)
│ ├── objectiveai-sdk-rs-pyo3/ # PyO3 bindings (Rust extension for Python)
│ └── objectiveai-sdk-rs-wasm-js/ # WASM bindings for browser / Node.js
│
├── # SDKs (other languages)
│ ├── objectiveai-sdk-js/ # TypeScript/JavaScript SDK (npm)
│ ├── objectiveai-sdk-py/ # Python SDK (PyPI)
│ ├── objectiveai-sdk-go/ # Go SDK
│ └── objectiveai-dotnet/ # .NET SDK (NuGet: ObjectiveAI)
│
├── # Server & binaries
│ ├── objectiveai-api/ # API server (self-hostable or importable)
│ ├── objectiveai-cli/ # Command-line interface
│ ├── objectiveai-viewer/ # Desktop viewer app (Tauri)
│ └── objectiveai-mcp/ # MCP server binary (ships as objectiveai-mcp)
│
├── # MCP integration
│ ├── objectiveai-mcp-proxy/ # MCP proxy — multiplexes tool calls
│ └── objectiveai-mcp-laboratory/ # MCP filesystem helpers
│
├── # Runners
│ ├── objectiveai-claude-agent-sdk-runner/ # Concurrent Claude Agent SDK runner
│ └── objectiveai-codex-sdk-runner/ # Concurrent OpenAI Codex SDK runner
│
├── # Web & tools
│ ├── objectiveai-web/ # Next.js production web interface
│ ├── objectiveai-cocoindex/ # CocoIndex integration (Python)
│ ├── objectiveai-github-discord-notifier/ # GitHub webhook → Discord notifier
│ └── objectiveai-json-schema/ # Generated JSON Schema files
│
└── # Other
├── examples/ # Usage examples
├── bin/ # Vendored build tool binaries
└── *.sh # Root scripts: build, install, publish, version
Contributing & development
Prerequisites
- Rust — stable toolchain via rustup. No pinned
rust-toolchain.toml; use the current stable release.wasm-packandmaturinare installed automatically into./bin/bybuild.sh(its first step). - Node.js + pnpm 10.25.0 — the workspace
packageManagerfield pins this version. Install pnpm viacorepack enableornpm i -g pnpm@10.25.0. - Python — required for
objectiveai-sdk-py(PyO3/maturin extension build) and the Claude/Codex agent-SDK runners (PyInstaller).
Build
pnpm install # JS workspace dependencies
cargo build --release # Rust crates
bash build.sh # full monorepo build in dependency order
# (first installs pinned build tools into ./bin/)
build.sh generates JSON schemas, compiles WASM and CFFI bindings, builds all language SDKs (.NET, Go, Python, JS), and produces viewer artifacts.
Test
bash test.sh # all suites in parallel (spawns a local API server)
cargo test # Rust workspace tests
pnpm test # JS/TS tests
test.sh exports OBJECTIVEAI_TEST_PORT and runs per-package test.sh scripts concurrently across objectiveai-sdk-rs, objectiveai-api, objectiveai-json-schema, objectiveai-cli, objectiveai-mcp-proxy, objectiveai-sdk-js, objectiveai-sdk-py, objectiveai-sdk-go, and objectiveai-viewer. Tests must not hit the production API — use the local server, mocks, or fixtures.
Conventions
- Package manager: use
pnpm, nevernpm. Filter to a single workspace package withpnpm --filter <package-name> run <script>. - No type re-exports in Rust. When an import path is wrong, fix it at the call site. Never add re-export aliases or shim
pub useentries to paper over a broken import. mod.rsdiscipline.mod.rsfiles contain only module declarations and re-export globs — no functions, structs, enums, traits, or impls. Every entry must be eitherpub mod foo;ormod foo; pub use foo::*;.- No network-hitting tests. Tests must not contact the production API. Mock responses or use local fixtures.
- Test failures are not pre-existing issues. Every failure must be investigated and fixed; never dismiss one to move on.
- Single shared version. All packages share one version number. Bump atomically across Cargo.toml, package.json, pyproject.toml, .csproj, and all inter-package dependency references with
bash version.sh <new-version>. - Publishing. The
ReleaseGitHub Actions workflow fires on every push to main, gated on theobjectiveai-cliversion: if the GitHub Releasev<version>doesn't exist yet, it rolls out everything for that version, all-or-nothing — the six per-platform binary zips (each built bybuild.sh --release --no-sdk) plus the language SDKs published sequentially (rust → python → javascript → golang). The SDK jobs ship already-committed artifacts (no codegen, no wasm build), so commit fresh generated artifacts (viabuild.sh) before bumping the version.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file objectiveai_sdk-2.2.8.tar.gz.
File metadata
- Download URL: objectiveai_sdk-2.2.8.tar.gz
- Upload date:
- Size: 736.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a180d5a3ba6d5808c53261f70ec9221dade54b1470affaa39aa10217fc4337e5
|
|
| MD5 |
671ef074413ba6f3f9fbb8a746df0787
|
|
| BLAKE2b-256 |
d789dc6549b8480fd3e140e2b0ac6d7d8be84650e4337873dd62f8f5e641a82d
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-win_arm64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-win_arm64.whl
- Upload date:
- Size: 5.5 MB
- Tags: CPython 3.10+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ba18e612c8e5a808e50b28d559f1df9f0ced799f99cb90c6bcabaef9b65fa72
|
|
| MD5 |
7b9b5af716d99c9d6ca1d13e2cdadc09
|
|
| BLAKE2b-256 |
7f6c31aebcc86cc5ffe3bb6349ea2f88d10667b86a05ad65f9545c0ec3a0b7a1
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 5.8 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0597463e43d9019ee6550d8b34d28f7c49ecbe7fd6a98e79f3053db24122cb89
|
|
| MD5 |
b3e19ba21558ceced40d7ba58ba5cfc2
|
|
| BLAKE2b-256 |
8eb0a9266813c7b2a73f86fa2fd990c3f79eb38abb77ee1db4a2c06bff279de9
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66bd017c7b04f58cea8df25aec8f91245b25325f96e998eadeb0b12d62cab3b0
|
|
| MD5 |
b6092d21f20de5e3685ce1f22301b765
|
|
| BLAKE2b-256 |
f4396624423fedcab3da3e0784fe30461e39a9810bbb51f8dc0a2b1331067fda
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5321160f34e20914b43d1ca1ebe8b3ad9dd70054c1d9e7140b3c0efc66ad8ac8
|
|
| MD5 |
cd05c1f3f7b0cca6d4c15f4e00e28998
|
|
| BLAKE2b-256 |
e1e53be75bd0fa793c4cb58e9d99156bc7b14605427df64b5f01dd86c0a29c7d
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.3 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
240523884689b9992f3f92c61ce43eaf2c5946a786f82fe92669f7d5675afb4c
|
|
| MD5 |
aa7eb7031cb3c267199295aafd7ccb62
|
|
| BLAKE2b-256 |
322cc0ce6cfbe009051595a8179ff541efcd1cae73d324c49246ddb255aca79d
|
File details
Details for the file objectiveai_sdk-2.2.8-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: objectiveai_sdk-2.2.8-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b66893634c0f78e50bb0e1667354d31131f27d724d7c1a07f36519a96eb4899
|
|
| MD5 |
835ae04325d8d0fc2736b5ce4f7e8f4e
|
|
| BLAKE2b-256 |
ed4d5c515a4cd8fd88d4bbdbf908c649cda8ffdc0c18cd18b6730864d96bb6c0
|