-
Notifications
You must be signed in to change notification settings - Fork 2
Quick Start
flyworker edited this page Jun 25, 2026
·
1 revision
Get a computing provider running in under 5 minutes.
- Go 1.21+ (
go version) - A running model server: SGLang, vLLM, Ollama, or any OpenAI-compatible endpoint
- A Swan Chain provider account (see step 2)
git clone https://github.com/swanchain/computing-provider
cd computing-provider
make mainnet && make installSign up at swanchain.io or on your local swan-inference instance:
# Sign up
curl -X POST https://<your-inference-host>/api/v1/user/signup \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"YourPass1","display_name":"My Provider"}'
# Upgrade to provider — save the sk-prov-* key
curl -X POST https://<your-inference-host>/api/v1/user/upgrade-to-provider \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name":"My Provider"}'computing-provider --repo ~/.swan/computing init --node-name my-provider --port 9085Edit ~/.swan/computing/config.toml:
[Inference]
Enable = true
WebSocketURL = "ws://inference-ws.swanchain.io" # no /ws suffix
ApiKey = "sk-prov-<your-key>"
Models = ["meta-llama/Llama-3.2-3B-Instruct"]Create ~/.swan/computing/models.json:
{
"meta-llama/Llama-3.2-3B-Instruct": {
"endpoint": "http://localhost:30000",
"gpu_memory": 8000,
"category": "text-generation"
}
}computing-provider runYou should see:
Connected to Swan Inference
Registration successful: registered successfully
Model meta-llama/Llama-3.2-3B-Instruct health changed: unknown -> healthy
-
Configuration reference — all
config.tomloptions - Inference Mode — no wallet required
- CLIProxyAPI guide — serve GPT-5.x without a GPU