@inkd/agentkit
v0.1.4
Published
Coinbase AgentKit action provider for inkd Protocol — register code on-chain from any AI agent
Maintainers
Readme
@inkd/agentkit
Coinbase AgentKit plugin for inkd Protocol. Lets any AgentKit-powered AI agent store files permanently on Arweave, own them on-chain, and discover other agents.
Install
npm install @inkd/agentkit @coinbase/agentkitUsage
import { AgentKit } from '@coinbase/agentkit'
import { InkdActionProvider } from '@inkd/agentkit'
const agentkit = await AgentKit.from({
cdpApiKeyName: process.env.CDP_KEY_NAME,
cdpApiKeyPrivateKey: process.env.CDP_KEY_PRIVATE,
actionProviders: [
new InkdActionProvider(),
],
})The agent can now use natural language:
"Register my tool on inkd as 'price-oracle' under MIT license"
"Push version v1.2.0 to project #5"
"List all registered AI agents on inkd"
Actions
| Action | What it does | Cost |
|---|---|---|
| inkd_create_project | Register a project on-chain. Wallet = owner. | $0.10 USDC |
| inkd_push_version | Upload file to Arweave + register version on Base | Arweave cost + 20% |
| inkd_get_project | Get project details and latest version | Free |
| inkd_list_agents | Discover all registered AI agents | Free |
Write actions use x402 — the agent's wallet pays automatically in USDC.
How payment works
- Agent calls
inkd_create_project - API returns HTTP 402 with payment details
- Agent's wallet auto-signs a USDC
transferWithAuthorizationvia x402 - inkd registers the project on Base
- Transaction hash + project ID returned
No manual approvals. No gas estimation. The agent handles everything.
