Skip to main content

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.

Website · Discord · GitHub

Release Crates.io npm PyPI License: MIT

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

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 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 and objectiveai-viewer.

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.

MCP (served by the daemon)

The daemon itself serves MCP (Model Context Protocol) over streamable HTTP at /mcp on its own address, executing commands in-process. Editors and agents (Claude, Cursor, etc.) point at http://127.0.0.1:<daemon-port>/mcp (plus the X-OBJECTIVEAI-SIGNATURE header when a daemon secret is configured).

Three crates make up the MCP surface:

  • the daemon's /mcp route — the primary MCP surface. Wraps the CLI as MCP tools over streamable HTTP, in-process. What users expose upstream for distributed agents.
  • objectiveai-mcp-proxy — a multiplexing sidecar of objectiveai-api. Terminates an MCP client connection and forwards tool calls to an upstream MCP server or to ObjectiveAI-native tools. Embedded inside objectiveai-api at 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.
--cli-only Equivalent to --no-viewer --no-api. 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 x and discord MCP 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.
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 of objectiveai-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 string id for 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 the codex binary and streams ThreadEvent objects 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/                       # retired standalone MCP server (folded into the daemon, #276)
│
├── # 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-pack and maturin are installed automatically into ./bin/ by build.sh (its first step).
  • Node.js + pnpm 10.25.0 — the workspace packageManager field pins this version. Install pnpm via corepack enable or npm 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, never npm. Filter to a single workspace package with pnpm --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 use entries to paper over a broken import.
  • mod.rs discipline. mod.rs files contain only module declarations and re-export globs — no functions, structs, enums, traits, or impls. Every entry must be either pub mod foo; or mod 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 Release GitHub Actions workflow fires on every push to main, gated on the objectiveai-cli version: if the GitHub Release v<version> doesn't exist yet, it rolls out everything for that version, all-or-nothing — the six per-platform binary zips (each built by build.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 (via build.sh) before bumping the version.

License

MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

objectiveai_sdk-2.2.13.tar.gz (867.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

objectiveai_sdk-2.2.13-cp310-abi3-win_arm64.whl (5.3 MB view details)

Uploaded CPython 3.10+Windows ARM64

objectiveai_sdk-2.2.13-cp310-abi3-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

objectiveai_sdk-2.2.13-cp310-abi3-macosx_11_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

objectiveai_sdk-2.2.13-cp310-abi3-macosx_10_12_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file objectiveai_sdk-2.2.13.tar.gz.

File metadata

  • Download URL: objectiveai_sdk-2.2.13.tar.gz
  • Upload date:
  • Size: 867.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for objectiveai_sdk-2.2.13.tar.gz
Algorithm Hash digest
SHA256 f1b16ee0992031b516d25b9fee28134b4fedbe38215fa1b1cefd60a3c7be8f62
MD5 2bdfe4cd53d20bdf3097827ba972c079
BLAKE2b-256 df3194b1c1e18440e2d2c56619823d4313ec71ccef31e68a01561827122218ab

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d5d207c8408556d447b84947bc7ee2f727bf8c057903694a0ec43d893cfd60cb
MD5 806bbc1bd15bf8739296fb30c77a556f
BLAKE2b-256 285fad3c224fba3fdabb9f64a48c8bddd3b5c2554dc930070c2fa70dda1ccc55

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ce11db8df7ed17bf5586cc7a123c33d7aa818d27dc77e3e2aa1113cebfcf13b9
MD5 712ad632104e7c098b325a840e42e574
BLAKE2b-256 a4adae8617445fe8de2dd9608ae79866f413e305c90bfc6a6d85020ba5c68683

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3125ceabcc14014a615ca896bd86f947ed1378516ca9f9814a7f621ff63e7e9b
MD5 1267973a83f7ef6c3f2b43b72efd578c
BLAKE2b-256 68b6d02d2abd8a76ca92922a17b466764ddb73c95ab5b428d4bce0185eaa54ed

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ac6ee0b753f3b0fe806abc7951411d57f2c54fa8124a17343a1f7c449bbde01d
MD5 6f85562f6299772606c2d98f79064a7e
BLAKE2b-256 02c58431fe08005f88d47367b11d43cc753d55a765b3735cd3a5afe15ed7234c

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab893947fe434c5ede27346f45deabe515a0b3496a6b27b5a3fde799050fc17e
MD5 117cc08b1ca565643ecc280049f669b8
BLAKE2b-256 4c33e7af087eb995f09177047b1be64382411a3d5e91ddef31f860f075cd4552

See more details on using hashes here.

File details

Details for the file objectiveai_sdk-2.2.13-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for objectiveai_sdk-2.2.13-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ee0ae209089e7a3b5dd115ff9f8f04fbe6a773b4913f1b33ddca8677a17a22c6
MD5 58d6ef2cdfe5956f85281397765d6142
BLAKE2b-256 1f94446cce2245dd1a1383a4e22f6f28501a502bbba78c7f4d2df7f497558d6d

See more details on using hashes here.

Release history Release notifications | RSS feed

2.2.16

7 files

2.2.15

7 files

2.2.14

7 files

This release

2.2.13 This release

7 files

2.2.12

7 files

2.2.11

7 files

2.2.10

7 files

2.2.9

7 files

2.2.8

7 files

2.2.7

7 files

2.2.6

7 files

2.2.5

6 files

2.2.4

5 files

2.2.3

5 files

2.2.2

5 files

2.2.1

5 files

2.2.0

5 files

2.1.3

5 files

2.1.2

5 files

2.1.1

5 files

2.0.11

5 files

2.0.10

5 files

2.0.9

5 files

2.0.8

5 files

2.0.7

5 files

2.0.6

5 files

2.0.5

5 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page