Sign inSign up

araratgornosay/opencode-routerai:1.0.0

Manifest digest

sha256:394e93f1193e908e2dd12c337b286f0b7845e5c0a97a2e4a22f9ec34403d2a47

Last pushed

27 days by araratgornosay

Type

Sandbox Kit

Manifest digest

sha256:394e93f1193e908e2dd12c337b286f0b7845e5c0a97a2e4a22f9ec34403d2a47

yaml
schemaVersion: "2"
kind: mixin
name: opencode-routerai
version: 1.0.0
displayName: OpenCode RouterAI.ru
description: |
    Adds the RouterAI.ru provider (OpenAI-compatible, z-ai GLM models) to the built-in opencode agent. The API key never enters the sandbox VM: opencode works with a proxy-managed sentinel, and the Docker Sandboxes proxy injects the real key (stored host-side via `sbx secret set routerai`) into Authorization headers for routerai.ru.
requires:
    agent: opencode
permissions:
    network:
        allow:
            - routerai.ru
            - '*.routerai.ru'
            - registry.npmjs.org
credentials:
    - service: routerai
      description: RouterAI.ru API key (https://routerai.ru)
      required: true
      apiKey:
        name: ROUTERAI_API_KEY
        proxyManaged: true
        inject:
            - domain: routerai.ru
              header: Authorization
              format: Bearer %s
environment:
    variables:
        OPENCODE_CONFIG: /home/agent/.config/opencode/routerai.json