agentverse-deploylisted
Install: claude install-skill fetchai/agentverse-skills
# Agentverse Deploy
## Overview
Deploy Python code as a hosted agent on Agentverse. The agent runs on Fetch.ai's infrastructure — no server needed. Creates the agent, uploads code in the correct format, and optionally starts it.
## When to Use
- User asks to "deploy this as an agent on Agentverse"
- User asks to "host this code on Agentverse"
- User asks to "create a new hosted agent"
- User has Python agent code they want to run on Agentverse
## Prerequisites
- `AGENTVERSE_API_KEY` environment variable set
- Python 3.8+ with `requests`
## Quick Steps
### 1. Deploy from a file
```bash
python3 scripts/deploy_agent.py --name "my-agent" --file ./my_agent_code.py --start
```
### 2. Deploy inline code
```bash
python3 scripts/deploy_agent.py --name "hello-agent" --code '
@agent.on_event("startup")
async def hello(ctx):
ctx.logger.info("Hello from my agent!")
'
```
### 3. Parse the result
```json
{
"status": "success",
"name": "my-agent",
"address": "agent1q...",
"running": true
}
```
## Critical: Hosted Agent Code Rules
Your code MUST follow these rules for the hosted environment:
1. **DO NOT** create an `Agent()` instance — `agent` is pre-created by the platform
2. **DO NOT** call `agent.run()` — the platform manages the lifecycle
3. **DO** use `@agent.on_event("startup")` for initialization
4. **DO** use `ctx.logger.info()` for output (no print/stdout)
5. **DO** use `Protocol` objects and `agent.include()` for message handling
### Valid hosted agent temp