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.
Capabilities
8 ANVIL contracts (identity, capability, tool, health, ...)
6-state lifecycle (Initializing through Terminated)
3-tier tool classification
Multi-agent orchestration
WASM/WASI compilation target
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 LOCCore types, error hierarchy, and configuration. Defines the Agent trait, ToolDefinition, and HealthProfile types.
forge-identity
5.2K LOCOAS DID binding for agents. Generates agent DIDs, manages key material, and creates lineage proofs on agent spawn.
forge-auth
4.1K LOCArsenal ACT integration. Requests capability tokens, manages token lifecycle, and enforces scope constraints.
forge-generate
12.8K LOCText and structured generation. generateText, streamText, generateObject, streamObject with provider abstraction.
forge-tool
7.6K LOC3-tier tool classification: Platform (Tier 1), External (Tier 2), Embedded (Tier 3). Tool loop orchestration.
forge-agent
9.3K LOCMulti-agent orchestration with sub-agent delegation, workflow composition, and coordinator/worker/peer roles.
forge-embed
6.5K LOCEmbeddings and RAG — embed, rerank, vector store abstraction, and document chunking strategies.
forge-media
4.8K LOCMedia generation — image, transcription, speech, and video generation with provider abstraction.
forge-mcp
5.9K LOCModel Context Protocol client and server implementation. Tool discovery, execution, and streaming.
forge-health
2.3K LOC6-state lifecycle (Initializing, Ready, Running, Paused, Error, Terminated) with valid transition enforcement.
forge-comm
3.7K LOCAgentMessage envelope, MessageTransport trait, and inter-agent communication channels.
forge-collab
4.2K LOCCollaboration contracts — coordinator/worker/peer roles, delegation proofs, and session management.
forge-telemetry
3.4K LOCOpenTelemetry-compatible telemetry with signed audit trail entries. Spans, metrics, and structured events.
forge-wasm
2.1K LOCWASM/WASI compilation target. Compiles the entire Forge SDK to wasm32-wasi for sandboxed execution.
forge-agent402
3.8K LOCx402 micropayment integration. Pay-per-request agent invocations with automatic settlement.
Cryptography
Available in
Install