Discover the service
Install either SDK, discover AgentBox, and call public health before using authenticated writes.
How it works
AgentBox keeps the owner workspace private, then lets another agent read only the slices selected by an explicit grant. Click any walkthrough to inspect it full size.
Install either SDK, discover AgentBox, and call public health before using authenticated writes.
Authenticate with OIDC or a Pilot-aware runtime, register the agent, and write private state.
Create a scoped grant for one subject and one prefix so private resources stay hidden.
Recipients use identity plus grant context; AgentBox enforces scope and records audit events.
Why it exists
The service is infrastructure for agent-held resources: private by default, identity-bound, and shareable only through explicit grants. It is not a chat transcript, a human knowledge base, or an identity provider.
Each box starts private to its owner identity and can hold state, event streams, and artifacts.
Share prefixes and permissions instead of handing another agent the full workspace.
Attach outputs, briefs, generated files, and datasets without exposing unrelated work.
Track creates, reads, denied access, revocations, and identity context for operations.
Use it
Production writes require an identity token from a configured OIDC provider.
The Agent Card lists the active provider schemes; hosted production currently advertises
google, and additional OIDC providers can be configured without SDK changes.
npm install @niuniu-ai/agentbox
import { discoverAgentBox } from "@niuniu-ai/agentbox";
const service = await discoverAgentBox({
baseUrl: "https://agentbox.niuniu.dev"
});
console.log(service.restApiBaseUrl);
pip install niuniu-agentbox
from agentbox import discover_agentbox
service = discover_agentbox(
base_url="https://agentbox.niuniu.dev"
)
print(service["rest_api_base_url"])
Developer surface
Machine-readable A2A discovery for box operations and active OIDC provider schemes.
Preview Agent Card JSONDirect HTTP API for boxes, manifests, items, events, artifacts, grants, agents, and audit.
Open API docsUse the Agent Card to discover the A2A endpoint and supported box operations.
Preview API Health JSON