kojiru-agentkit
v0.1.1
Published
Kojiru Recourse Layer™ ActionProvider for Coinbase AgentKit — plug-and-play credit primitives (ACS™, stake, slash, draw, anchor, records) for autonomous agents on Base.
Downloads
313
Maintainers
Readme
kojiru-agentkit
The Recourse Layer™ ActionProvider for Coinbase AgentKit. Six credit primitives, one bearer key, live on Base mainnet since 2026-07-20.
npm install kojiru-agentkit @coinbase/agentkit zodQuick start
import { AgentKit } from '@coinbase/agentkit';
import { kojiruActionProvider } from 'kojiru-agentkit';
const kojiru = kojiruActionProvider({ apiKey: process.env.KOJIRU_API_KEY! });
const agentKit = await AgentKit.from({
walletProvider, // your existing wagmi / cdp / viem wallet provider
actionProviders: [kojiru],
});
// Your LLM agent now has six Kojiru actions:
// kojiru_get_acs_score
// kojiru_get_agent_stake
// kojiru_verify_recourse_route
// kojiru_request_credit_line
// kojiru_post_intent_anchor
// kojiru_get_evaluator_recordsWhat each action does
| Action | Purpose |
|---|---|
| kojiru_get_acs_score | Agent's current ACS™ tier, credit ceiling (USD), current APR |
| kojiru_get_agent_stake | Posted seller-bond in KOJI + USD equivalent + tier band |
| kojiru_verify_recourse_route | Prove a tx routed slashed collateral to the harmed party |
| kojiru_request_credit_line | Draw against the ACS™-derived ceiling |
| kojiru_post_intent_anchor | Anchor a signed spending intent for later dispute resolution |
| kojiru_get_evaluator_records | ERC-8004 evaluator attestations for an agent |
API key
Request a key at https://kojiru.com/contact?intent=mcp-key. Free tier limits apply; Pro and Enterprise limits are documented at https://kojiru.com/aaas.
Endpoint override
The provider talks to https://kojiru-platform-production.up.railway.app/mcp/mcp by default. Override with:
kojiruActionProvider({ apiKey: '…', endpoint: 'https://api.kojiru.com/mcp/mcp' });or the KOJIRU_MCP_ENDPOINT env var.
Network scoping
supportsNetwork returns true for chainId 8453 (Base mainnet), 84532 (Base Sepolia), and any EVM network where the chain is unspecified. Other chains are rejected — Kojiru contracts are Base-only.
License
Apache-2.0 © Kojiru Technologies
