MSGHASHSIGNJCS
MULTI-LANGUAGE AGENT SDK

Forge

ANVIL-compliant agent SDK providing unified API for building AI agents across 6 languages. Text and structured generation, 3-tier tool classification, multi-agent orchestration, embeddings, media generation, and MCP integration — all with OAS identity binding.

273K+LOC
35crates
6languages

Capabilities

01

8 ANVIL contracts (identity, capability, tool, health, ...)

02

6-state lifecycle (Initializing through Terminated)

03

3-tier tool classification

04

Multi-agent orchestration

05

WASM/WASI compilation target

06

Cross-language crypto parity via Rust WASM

15 Crates

Inside Forge

Every crate in the Forge workspace, what it does, and how it fits together.

forge-core

8.4K LOC

Core types, error hierarchy, and configuration. Defines the Agent trait, ToolDefinition, and HealthProfile types.

01

forge-identity

5.2K LOC

OAS DID binding for agents. Generates agent DIDs, manages key material, and creates lineage proofs on agent spawn.

02

forge-auth

4.1K LOC

Arsenal ACT integration. Requests capability tokens, manages token lifecycle, and enforces scope constraints.

03

forge-generate

12.8K LOC

Text and structured generation. generateText, streamText, generateObject, streamObject with provider abstraction.

04

forge-tool

7.6K LOC

3-tier tool classification: Platform (Tier 1), External (Tier 2), Embedded (Tier 3). Tool loop orchestration.

05

forge-agent

9.3K LOC

Multi-agent orchestration with sub-agent delegation, workflow composition, and coordinator/worker/peer roles.

06

forge-embed

6.5K LOC

Embeddings and RAG — embed, rerank, vector store abstraction, and document chunking strategies.

07

forge-media

4.8K LOC

Media generation — image, transcription, speech, and video generation with provider abstraction.

08

forge-mcp

5.9K LOC

Model Context Protocol client and server implementation. Tool discovery, execution, and streaming.

09

forge-health

2.3K LOC

6-state lifecycle (Initializing, Ready, Running, Paused, Error, Terminated) with valid transition enforcement.

10

forge-comm

3.7K LOC

AgentMessage envelope, MessageTransport trait, and inter-agent communication channels.

11

forge-collab

4.2K LOC

Collaboration contracts — coordinator/worker/peer roles, delegation proofs, and session management.

12

forge-telemetry

3.4K LOC

OpenTelemetry-compatible telemetry with signed audit trail entries. Spans, metrics, and structured events.

13

forge-wasm

2.1K LOC

WASM/WASI compilation target. Compiles the entire Forge SDK to wasm32-wasi for sandboxed execution.

14

forge-agent402

3.8K LOC

x402 micropayment integration. Pay-per-request agent invocations with automatic settlement.

15

Cryptography

Ed25519
HKDF-SHA256
BLAKE3
ECDH
AES-256-GCM

Available in

Rust
TypeScript
Python
Go
Swift
Kotlin

Install

$ cargo add forge
$ npm i @openagent/forge
$ pip install openagent-forge
$ go get github.com/openagentid/forge

Start building with Forge

Read the documentation or explore the source.