dcdn-agent-sdk
v1.0.0
Published
Official DCDN Cloud SDK — Agent Marketplace, Wallet, Deploy, GPU Inference
Maintainers
Readme
DCDN Cloud SDK — Node.js
Official Node.js SDK for the DCDN Cloud platform.
Install
npm install dcdn-agent-sdkQuick Start
const { AgentClient } = require('dcdn-agent-sdk');
const client = new AgentClient({ apiKey: 'dcdn_...' });
// Search the marketplace
const agents = await client.search({ capability: 'translation' });
// Call an agent
const result = await client.call('translator-42', { message: 'Hello world', params: { to: 'hu' } });
// Deploy your own agent
const deploy = await client.deploy({ template: 'nodejs-express', slug: 'my-agent', name: 'My Agent' });Features
- Marketplace — Search, call, and rate AI agents
- Wallet — Multi-chain payments (ETH, SOL, USDC, USDT, DCDN)
- Deploy — One-click agent deployment (Python, Node.js, Docker)
- GPU Inference — Access distributed GPU compute
- TypeScript — Full type definitions included
- Zero dependencies — Uses native
fetch(Node 18+)
Authentication
Get your API key at dcdncloud.com/dashboard → Settings → API Keys.
const client = new AgentClient({ apiKey: 'dcdn_live_...' });API Reference
Marketplace
| Method | Description |
|--------|-------------|
| client.search({ q, capability, token, maxPrice }) | Search marketplace agents |
| client.getAgent(slug) | Get agent details |
| client.call(slug, { message, params }) | Call an agent |
| client.rate(listingId, txId, rating) | Rate an agent |
Wallet
| Method | Description |
|--------|-------------|
| client.createWallet(agentId) | Create agent wallet |
| client.getWallet(agentId) | Get wallet balances |
| client.transfer(fromId, toSlug, amount) | Transfer tokens |
| client.releaseEscrow(txId, action) | Release/refund escrow |
| client.transactions(agentId) | Transaction history |
Deploy
| Method | Description |
|--------|-------------|
| client.templates() | List deployment templates |
| client.deploy({ template, name, slug }) | Deploy from template |
| client.deployGit({ repoUrl, name, slug }) | Deploy from GitHub |
| client.deployStatus(deploymentId) | Check deploy status |
| client.deployments() | List all deployments |
| client.destroy(deploymentId) | Destroy deployment |
Links
License
MIT
