Build and test a remote rollout agent in 5 minutes
Clone the official template repository, implement your agent logic, and connect to the Osmosis training cluster — the fastest path to a working Remote Rollout server.
Click the “Use this template” button in the top-right corner to create your own repository based on this template.
This template includes a complete project structure, example code, and test data so you can start developing immediately.
2
Clone and Install Dependencies
Clone your newly created repository and install dependencies:
Copy
Ask AI
uv sync
If you don’t have uv installed, you can also use pip:
Copy
Ask AI
pip install osmosis-ai[server]
3
Login to Osmosis Platform
Authenticate with the Osmosis Platform to enable server registration:
Copy
Ask AI
uv run osmosis login
This will open your browser for authentication. After logging in, your credentials are saved to ~/.config/osmosis/credentials.json.You can verify your login status with:
Copy
Ask AI
uv run osmosis whoami
The server uses your credentials to register with Osmosis Platform, enabling the training system to discover and connect to your server.
The template includes a test_data.jsonl test dataset. Set your API key and run tests:
Copy
Ask AI
export OPENAI_API_KEY="your-key-here"# Run batch testsuv run osmosis test -m server:agent_loop -d test_data.jsonl# Limit number of testsuv run osmosis test -m server:agent_loop -d test_data.jsonl --limit 10# Use a different modeluv run osmosis test -m server:agent_loop -d test_data.jsonl --model anthropic/claude-sonnet-4-5
For step-by-step debugging and advanced testing options, see Test Mode.