NANDA SDK
A Python SDK for setting up Internet of Agents servers. This tool automates the process of configuring servers with DNS records, SSL certificates, and required software.
Installation
Pre-requistie commands
ssh into the servers
# For Ubuntu/Debian:
sudo apt update && sudo apt install -y python3 python3-pip
# For RHEL/CentOS/Fedora(Amazon Linux):
sudo dnf install -y python3 python3-pip
pip install nanda-sdk
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com>
Quick Setup Guide
1. Install the SDK
pip install nanda-sdk
2. Run the Setup
The setup requires two mandatory parameters:
--anthropic-key: Your Anthropic API key--domain: Your complete domain name (e.g., myapp.example.com)
Optional parameters:
--smithery-key: Your Smithery API key for connecting to MCP servers. A default key will be provided by application for connectivitiy--agent-id: A specific agent ID (if not provided, a random 6-digit number will be generated)--num-agents: Number of agents to set up (defaults to 1 if not specified)--registry-url: If the registry url needs to be changed. Default to https://chat.nanda-registry.com. We just need to pass the domain. Expected port for registry to run in 6900 Example commands:
# Basic setup with random agent ID
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com>
# Setup with specific agent ID
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com> --agent-id 123456
# Setup with multiple agents
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com> --num-agents 3
# Setup with your own smithery key
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com> --smithery-key <your_smithery_api_key>
# Setup with your own registry
nanda-sdk --anthropic-key <your_anthropic_api_key> --domain <myapp.example.com> --registry-url <https://your-domain.com>
3. Verify Installation
After setup completes, verify your agent is running:
# Check service status
systemctl status internet_of_agents
# View logs
journalctl -u internet_of_agents -f
# list of servers
ps aux | grep run_ui_agent_https
Your agent will be:
- Running as a systemd service
- Accessible at your specified domain
- Automatically starting on server reboot
What the Setup Does
The SDK automatically:
- Generates a random 6-digit agent ID (if not specified)
- Gets your server's public IP
- Creates a DNS record (e.g., chat123456.nanda-registry.com)
- Installs required packages:
- Python and pip
- Git
- Certbot for SSL
- Nginx
- Sets up SSL certificates
- Clones the repository
- Sets up Python virtual environment
- Configures the systemd service
Troubleshooting
If you encounter any issues:
- Check the service status:
systemctl status internet_of_agents
- View detailed logs:
journalctl -u internet_of_agents -f
- For Route53 DNS issues, contact the NANDA support team.
Requirements
- Python 3.6 or higher
- Linux server (tested on Ubuntu)
- Anthropic API key
Support
If you encounter any issues with Route53 DNS setup, please contact the NANDA support team.
License
MIT License
Metadata
Release files for nanda-sdk 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nanda_sdk-0.1.6.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nanda_sdk-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / nanda_sdk-0.1.6.tar.gz
| Download URL | nanda_sdk-0.1.6.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b872ac7ed006a2e3fac924ad8641d4cf2f0819bf5c0e4272f8f08a54d4ceba2
|
|
BLAKE2b-256 checksum How to use checksums |
447a1d90dfc3489838f13221f37dc55d152d3f2d02c16852b4669aefdf572991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Release files / nanda_sdk-0.1.6-py3-none-any.whl
| Download URL | nanda_sdk-0.1.6-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
373a34300f81d4805bcc6483ef40daba91a8896f89481a50b90fb04b4d885eb8
|
|
BLAKE2b-256 checksum How to use checksums |
60b082fc4b4a54efd6408158b185247692786a080be02501e216f1620f88695c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|