@corven/agentix
v1.0.8
Published
Local-first AI agent execution engine. Smart wallets, sessions, credentials, and risk-bound execution for AI agents on Base Sepolia.
Maintainers
Readme
AgentIX
Local-first runtime for AI agents on Base Sepolia: local SQLite state, MCP tools,
ERC-4337 smart-wallet workflows, credential/proof helpers, and risk-aware action
compilation. This package is the npm runtime artifact for @corven/agentix.
This README is intentionally explicit about what is included, what is beta, and what is not shipped in the npm package.
Install / Run
npx @corven/agentix setup
# or, after global install:
npm i -g @corven/agentix
agentix setupThe package exposes two binaries:
agentix- CLI for setup, diagnostics, local runtime operations, MCP wiring, wallet/session/credential helpers, proof helpers, and stack/API commands.agentix-mcp- stdio MCP server for AI coding clients.
Data is local by default:
~/.agentix/config/agentix.config.json- config~/.agentix/db/agentix.db- SQLite database~/.agentix/backups/- backups~/.agentix/logs/- logs
Set AGENTIX_HOME=/path/to/dir to relocate all runtime state.
What Ships In This Npm Package
Included in the published package:
- Bundled Node entrypoints:
index.js,mcp.js,server.js. - CLI shims:
bin/agentix,bin/agentix-mcp. - TypeScript source:
src/andpackages/for inspection/debugging. - ZK proving artifacts needed by the runtime:
circuits/prover/credential_V1_final.zkeycircuits/prover/credential_V1_js/credential_V1.wasmcircuits/build/verification_key.jsoncircuits/artifacts.manifest.json
- Vendored
better-sqlite3native binaries for Node 22 and Node 24 on common macOS/Linux/Windows x64/arm64 targets. - Runtime dependencies for CLI, MCP, SQLite, ethers, snarkjs, circomlibjs, zod, and commander.
Not included in the npm package:
- The Next.js dashboard application source/build under
apps/dashboard. - The source repo's development scripts except the bundled runtime behavior.
- A hosted cloud backend.
- Private keys, funded accounts, API keys, or production RPC credentials.
- Mainnet deployments.
Requirements
- Node.js 18 or newer.
- Recommended: Node 22 or Node 24. These are the Node ABIs with shipped prebuilt SQLite binaries.
- If your Node/platform has no matching SQLite binary, either use Node 22/24 or
set
AGENTIX_SQLITE_BINDINGto a locally builtbetter_sqlite3.node. - Network: Base Sepolia RPC. Public RPC fallbacks are configured by default; provider keys are optional for higher rate limits.
Current Network / Contract Scope
AgentIX is currently wired for Base Sepolia only:
- Chain ID:
84532 - Default public RPC rotation includes Pocket, Base, PublicNode, and dRPC Base Sepolia endpoints.
- Contract addresses are embedded in the default config and can be printed with:
npx @corven/agentix contractsMainnet is not supported by this package today.
Main Commands
npx @corven/agentix setup # interactive/non-interactive first-run setup
npx @corven/agentix init # initialize local dirs/db/config
npx @corven/agentix connect # write MCP config and wire detected clients
npx @corven/agentix connect --print # print copy-paste MCP JSON
npx @corven/agentix doctor # comprehensive diagnostics
npx @corven/agentix health # quick health check
npx @corven/agentix diagnostics # diagnostic sections
npx @corven/agentix config show # show local config
npx @corven/agentix rpc # test configured RPC
npx @corven/agentix contracts # print Base Sepolia contract addresses
npx @corven/agentix protocol # protocol notes built into the CLIDomain commands exposed by the CLI:
npx @corven/agentix org <create|get|list|deactivate|reactivate>
npx @corven/agentix cred <issue|revoke|get|list>
npx @corven/agentix session <create|validate|revoke|get|list>
npx @corven/agentix wallet <create|get|whitelist|execute|batch|deposit|withdraw>
npx @corven/agentix tree <status|rebuild|export|import|snapshot|restore>
npx @corven/agentix delegation <create|revoke|get|list>
npx @corven/agentix capability <register|revoke|get|list>
npx @corven/agentix proof <generate|verify|list>
npx @corven/agentix backup <create|list|restore|export|import>
npx @corven/agentix fund --network baseSepolia --amount 10
npx @corven/agentix stack <start|status>
npx @corven/agentix agent <create|wallet|session|whitelist|execute|balance|deposit|delegation|list>
npx @corven/agentix compile <intent-file>
npx @corven/agentix plans
npx @corven/agentix plan <plan-id>MCP Integration
Start the MCP server directly:
npx @corven/agentix mcp
# or
npx agentix-mcpGenerate MCP config:
npx @corven/agentix connect --printsetup and connect write a portable AgentIX-owned MCP config at
~/.agentix/mcp.json. connect also attempts to wire detected MCP clients and
known harnesses when possible.
Named harness adapters exist for:
- Claude Code
- MimoCode
- OpenCode
- GitHub Copilot / VS Code MCP config shape
- Hermes
- Cursor
- Gemini
- OpenClaude
The universal connector also understands the common mcpServers, servers,
and mcp JSON shapes.
MCP Tools: What Exists
The MCP server currently declares 71 tools. Most are read/query/compile helpers; some submit transactions or create local/on-chain objects if configured with the required keys and funded accounts.
Implemented non-dashboard MCP categories:
- System/config/RPC: health, stats, contracts, diagnostics, RPC test, protocol docs, config get/show.
- Wallet/identity: create wallet, owner execute, list/get/balance, identity get.
- Sessions: list, validate, find sessions by session key, session status.
- Organizations: list/get/get anchor.
- Credentials: list/get/history/nullifier check/oracle state.
- Capabilities: list/get/on-chain verify.
- Delegations: list, verify, verify chain, get root.
- Trees/proofs/events/logs: tree status, proof list/verify, events, session logs.
- Harnesses: scan and list detected harnesses.
- Transactions: list/get transaction history.
- Bundler: session-signed send, submit signed UserOp, status, flush, address.
- Agent key: generate key pair.
- Onboarding/funding: onboarding status, fund recommendations.
- Stack: start/status.
- Compiler/plans/policy: parse intent, compile intent, get/list/approve plan, policy get/check, capability envelope.
Dashboard-only MCP tools are intentionally blocked and return a DASHBOARD_ONLY
message instead of mutating owner state from an agent context:
agentix_session_createagentix_session_revokeagentix_session_pruneagentix_wallet_whitelistagentix_wallet_execute_batchagentix_config_setagentix_backup_createagentix_policy_set
What Works Out Of The Box
With no private keys and no provider keys, a fresh install can:
- Create local config, directories, SQLite database, logs, and backup paths.
- Use public Base Sepolia RPC fallbacks.
- Run diagnostics and health checks.
- Start the MCP server.
- Generate MCP config for clients.
- Query local state tables.
- Compile/inspect intents and plans locally.
- Generate local agent key pairs.
- Show contract addresses and protocol documentation.
- Generate/list local backups once local state exists.
- Generate ZK proofs if the required local credential inputs exist, because the proving key and wasm are shipped.
What Requires External Setup
These flows are present in code but require real external preconditions:
- On-chain writes require Base Sepolia ETH and configured signer/private key environment variables where the specific command/tool expects them.
- Wallet deployment/execution requires a working RPC, funded operator/bundler or owner path, and valid contract state.
- Organization approval/credential issuance assumes the deployed Base Sepolia contracts and authority flow are available.
- ZK credential/session flows require valid credential records and matching on-chain roots; the package ships proving artifacts, not pre-issued credentials.
- Higher reliability requires your own RPC provider key; public endpoints can rate limit or fail.
What Does Not Exist / Not Supported Yet
- No mainnet support.
- No hosted service or cloud sync.
- No bundled Next.js dashboard in the npm artifact. The source repo contains a
dashboard, but this npm package ships the CLI/API/MCP runtime, not the dashboard
app. In a published install,
stack startcan start the bundled API server; a dashboard URL may not exist unless running from the source checkout. - No production custody guarantee. Treat wallet/private-key flows as beta and use testnet funds only unless you have independently audited the contracts and runtime.
- No automatic purchase of ETH.
fundonly returns official provider/faucet links. - No private-key storage magic for every flow. Some owner/operator paths require environment variables or explicit arguments.
- No guarantee every AI client accepts auto-wiring. MCP clients use different config
formats;
connect --printis the fallback. - No claim that transitive dependencies are advisory-free.
snarkjspulls some dev-tooling transitive packages with published advisories; they are not expected to be reachable from the runtime proving path, but this remains upstream debt.
Security Notes
- The local API server binds to
127.0.0.1and is intended for local use only. Do not expose it to a network. - The local API has no user authentication; local processes/browser pages that can reach it may trigger local runtime actions.
- Never commit
.agentix, private keys, RPC keys, backups, or generated wallet material. - The MCP server gives AI clients access to AgentIX tools. Only wire clients you trust with that local capability surface.
- This is Base Sepolia/testnet-oriented software. Use test funds.
Package Audit Snapshot
This README describes package version 1.0.7 as generated by
bun run bundle.
Verified during packaging:
- The generated package manifest exposes
agentixandagentix-mcpbins. - The package allowlist includes bundled JS, TypeScript source, ZK artifacts, vendored SQLite binaries, and lock/config files needed for debugging.
- MCP tool declarations have handlers, except for the intentionally dashboard-only blocked tools listed above.
- The bundle/test pipeline is expected to pass with
bun run buildandbun run testfrom the source checkout before publishing.
License
MIT
