β‘ Quick Start
Deploy Your First Agent
Get up and running with MNNR in under 5 minutes. Create an agent, fund its wallet, and start making autonomous payments.
Estimated time:~5 minutes
1
Create Account
Sign up for a MNNR account to get started:
- 1Visit mnnr.app
- 2Click "Get Started" and create your account
- 3Verify your email address
- 4Choose your plan (Free tier available)
2
Get API Keys
Generate your API credentials:
- 1Go to your Dashboard
- 2Navigate to "API Keys" section
- 3Click "Generate New Key"
- 4Copy your API key (keep it secure!)
β οΈ Security Note: Never share your API keys publicly. Store them securely in environment variables.
3
Install SDK
Choose your preferred SDK:
πPython
pip install mnnr-sdk
import mnnr
client = mnnr.Client(api_key="your-api-key")β‘JavaScript
npm install @mnnr/sdk
import { MNNR } from '@mnnr/sdk';
const client = new MNNR({ apiKey: 'your-api-key' });4
Create Your First Agent
Register an agent with economic identity:
πPython
# Create an agent identity
agent = client.agents.create(
name="my-first-agent",
spending_limit=100, # $100 USD
currency="USD",
capabilities=["data-processing", "api-calls"]
)
print(f"Agent ID: {agent.id}")
print(f"Wallet: {agent.wallet_address}")β‘JavaScript
// Create an agent identity
const agent = await client.agents.create({
name: 'my-first-agent',
spendingLimit: 100, // $100 USD
currency: 'USD',
capabilities: ['data-processing', 'api-calls']
});
console.log(`Agent ID: ${agent.id}`);
console.log(`Wallet: ${agent.walletAddress}`);5
Make Agent-to-Agent Payment
Enable your agent to pay for services:
πPython
# Pay another agent for a service
payment = client.payments.create(
from_agent=agent.id,
to_agent="service-provider-agent-id",
amount=0.50, # $0.50 USD
currency="USD",
description="Data processing task"
)
print(f"Payment ID: {payment.id}")
print(f"Status: {payment.status}")β‘JavaScript
// Pay another agent for a service
const payment = await client.payments.create({
fromAgent: agent.id,
toAgent: 'service-provider-agent-id',
amount: 0.50, // $0.50 USD
currency: 'USD',
description: 'Data processing task'
});
console.log(`Payment ID: ${payment.id}`);
console.log(`Status: ${payment.status}`);π
You're All Set!
Your first agent is ready to participate in the machine economy. Explore more features or dive into the full API documentation.