sdk

The unified package that re-exports all Regent SDK functionality with high-level APIs.

Installation

bun add regent-sdk

High-Level APIs

createRegentAgent()

Create a full-featured agent with runtime and optional ERC-8004 identity:

import { createRegentAgent } from 'regent-sdk';

const agent = await createRegentAgent({
  name: 'My Agent',
  description: 'An intelligent assistant',
  version: '1.0.0',
  http: { port: 3000 },
  identity: {
    chainId: 84532,
    rpcUrl: 'https://sepolia.base.org',
    ipfs: 'pinata',
    ipfsConfig: { pinataJwt: process.env.PINATA_JWT },
  },
  trust: { reputation: true },
});

// Register on-chain
const { agentId } = await agent.registerOnchain();
console.log('Registered:', agentId);

// Search for other agents
const agents = await agent.search({ mcp: true });

RegentAgentConfig

RegentAgentResult

createRegentSDK()

Create a standalone ERC-8004 SDK for identity/discovery without the full runtime:

Re-Exports

Core Runtime

HTTP Extension

A2A Extension

ERC-8004 SDK

Types

Usage Patterns

Read-Only Discovery

When to Use Each API

Scenario
API

Building a new agent with identity

createRegentAgent()

Adding identity to existing agent

createRegentSDK() + manual integration

Searching/discovering agents

createRegentSDK()

Building without identity

createAgent() from @regent/core

Fine-grained extension control

Individual packages

Last updated