MPC wallet service and TypeScript SDK for AI agents.
- 2-of-2 MPC (GG18) key generation and signing.
- HTTP API with API key auth.
- Policy engine (limits, whitelist, tx count, time window).
- SQLite persistence with AES-256-GCM encrypted shard storage.
- TypeScript SDK (
MPCClient,MPCWallet) and examples.
docker build -t agent-vault:latest -f docker/Dockerfile .
docker run -d \
--name agent-vault \
-p 8080:8080 \
-e MPC_API_KEYS=test-api-key \
-e SHARD_ENCRYPTION_KEY=$(openssl rand -base64 32) \
-v $(pwd)/data:/app/data \
agent-vault:latestcd sdk
npm install
npm run buildimport { MPCWallet, MemoryWalletStorage } from './dist/index.js';
const wallet = new MPCWallet({
client: {
baseURL: 'http://localhost:8080',
apiKey: 'test-api-key',
timeout: 120000,
},
storage: new MemoryWalletStorage(),
});
const address = await wallet.create(1);
const signature = await wallet.signMessage('Hello AgentVault');
console.log(address, signature);GET /healthPOST /api/v1/wallet/createPOST /api/v1/wallet/signGET /api/v1/wallet/:addressPUT /api/v1/wallet/:address/policyGET /api/v1/wallet/:address/policyGET /api/v1/wallet/:address/usage
docs/api.mddocs/sdk.mddocs/deployment.mddocs/architecture.mddocs/security.mddocs/troubleshooting.mddocs/openapi.jsondocs/roadmap.md- Development roadmap and planned improvements
examples/basic/README.mdexamples/with-eliza/README.mdexamples/with-goat/README.md
MIT. See LICENSE.