−25%

auf Windows bei Jahreszahlung, bis 31.10. Zu den Tarifen

EQVPS
Loslegen

Konto verbinden

Du hast schon ein EQVPS-Konto und willst, dass ein Skript oder Agent es nutzt: Token holen, in die Konfiguration eintragen, erste Sandbox starten und das Guthaben im Blick behalten.

So hängt alles zusammen

Dein Kontoeqvps.comAPI-TokenBearer …Agent oder SkriptMCP · REST · SDKEQVPS APIapi.eqvps.comSandboxPython · Node · bashGuthabenUSD$ / s
Das Token sagt, wer du bist. Jede Anfrage läuft über dein Konto, und die Sandbox-Zeit wird von deinem Guthaben abgebucht.

1. Token holen

Am einfachsten: Öffne im Dashboard Einstellungen → API-Tokens, erstelle ein Token (benenne es nach dem Agenten, wähle eine Laufzeit) und kopiere es. Es wird nur einmal angezeigt.

Über die Kommandozeile: Melde dich mit E-Mail und Passwort an, um ein frisches Token zu bekommen. Hast du dich per E-Mail-Code registriert und nie ein Passwort gesetzt, setz einmalig eins – mit einem Token aus dem Dashboard. Ein neues Konto kannst du auch mit POST /auth/register anlegen, das sofort ein Token zurückgibt.

# log in with email + password → token
curl -s https://api.eqvps.com/api/v1/eqvps/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"your-password"}'
# → {"token":"eyJ0…","token_type":"Bearer","token_expires_at":"2027-10-03T…","user":{…}}

# signed up with an email code and have no password? set one once
# (authorise with a token from Settings → API tokens)
curl -s https://api.eqvps.com/api/v1/eqvps/auth/set-password \
  -H "Authorization: Bearer $EQVPS_API_KEY" -H "Content-Type: application/json" \
  -d '{"password":"new-pass-123","password_confirmation":"new-pass-123"}'

# no account yet: register straight from the API (password is optional)
curl -s https://api.eqvps.com/api/v1/eqvps/auth/register \
  -H "Content-Type: application/json" -d '{"email":"you@example.com"}'

# extend a token before it expires
curl -s -X POST https://api.eqvps.com/api/v1/eqvps/auth/token/refresh \
  -H "Authorization: Bearer $EQVPS_API_KEY"

Ein Token gilt 1 Jahr (siehe token_expires_at in der Antwort). Verlängern mit POST /auth/token/refresh; nicht mehr genutzte Tokens widerrufst du in den Einstellungen.

2. In die Konfiguration eintragen

Halte das Token aus dem Code heraus: exportiere es als EQVPS_API_KEY. MCP-Clients bekommen es im Authorization-Header.

# shell / CI secret — keep it out of the code
export EQVPS_API_KEY="eyJ0…"

# SDKs read the same variable (0.2.0+: give your code its secrets as env, not in the source)
pip install -U eqvps         # Python
npm i @eqvps/sdk@latest      # TypeScript / JavaScript

# Claude Code
claude mcp add --transport http eqvps https://mcp.eqvps.com/mcp \
  --header "Authorization: Bearer $EQVPS_API_KEY"

# Cursor, Claude Desktop, other MCP clients (mcp.json)
{
  "mcpServers": {
    "eqvps": {
      "type": "streamable-http",
      "url": "https://mcp.eqvps.com/mcp",
      "headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
    }
  }
}

3. Erste Sandbox starten

Erstellen, Code ausführen, löschen. Ein exit_code ungleich null ist ein normales Ergebnis deines Befehls, kein HTTP-Fehler.

API=https://api.eqvps.com/api/v1/eqvps
H="Authorization: Bearer $EQVPS_API_KEY"

SB=$(curl -s -X POST $API/sandboxes -H "$H" -H "Content-Type: application/json" \
  -d '{"tariff":"micro"}' | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])')

curl -s -X POST $API/sandboxes/$SB/run -H "$H" -H "Content-Type: application/json" \
  -d '{"language":"bash","code":"uname -sr && python3 --version && node --version"}'
# → {"exit_code":0,"stdout":"Linux 6.1…\nPython 3.12…\nv22…\n","stderr":"",…}

curl -s -X DELETE $API/sandboxes/$SB -H "$H"

Modi, Tarife und Beispiele in Python / Node.js: Sandboxes →

4. Guthaben aufladen

Sandboxes und Server werden aus einem Prepaid-Guthaben bezahlt. Lade es im Dashboard auf (Guthaben: Krypto, Monero oder Promo-Code) oder mit POST /balance/topup, das einen Zahlungslink zurückgibt. GET /balance zeigt, wie viel übrig ist.

curl -s $API/balance -H "$H"
# → {"balance":12.4,"currency":"USD","promo_balance":0,"real_balance":12.4,"promo_scope":"sandboxes"}

curl -s -X POST $API/balance/topup -H "$H" -H "Content-Type: application/json" -d '{"amount":10}'
# → {"invoice_id":…,"checkout_url":"https://…"}   open the link and pay with crypto

Fehler, die dir wahrscheinlich begegnen

  • 401 Unauthenticated – das Token fehlt, ist vertippt, abgelaufen oder widerrufen. Prüfe den Header Authorization: Bearer, erstelle ein neues Token in den Einstellungen oder melde dich neu an.
  • 402 insufficient_balance – das Guthaben ist leer, daher startet keine neue Sandbox. Lade auf und wiederhole die Anfrage. Laufende persistente Sandboxes werden pausiert statt gelöscht.
  • 429 und 503 heißen, dass die Anfrage abgewiesen wurde, bevor etwas lief: warte Retry-After ab und sende sie erneut. 409 sandbox_paused: aufladen, dann läuft die Sandbox weiter.
HTTP 401  {"message":"Unauthenticated."}
HTTP 402  {"error":"insufficient_balance","message":"Your balance cannot cover this sandbox. Top up (topup_balance / POST /balance/topup) and retry."}
HTTP 429  {"error":"too_many_concurrent", …}      → wait Retry-After, then retry
HTTP 503  {"error":"capacity","retry_after":30, …} → wait Retry-After, then retry

Kommentare

Noch keine Kommentare. Sei der Erste.

Kommentar hinterlassen

Kommentare werden vor der Anzeige moderiert.