Credential proxy

Point OpenCode at shared model access through a credential proxy without replacing your existing provider configuration.

A credential proxy lets an assigned runner use the models served by a shared pool while provider credentials stay with the proxy. Connecting OpenCode is a manual configuration step: Evident does not change the runner's own OpenCode configuration. This walkthrough uses the current dashboard controls, but it does not prove that your proxy is deployed or reachable.

Register a customer-operated proxy

  1. Open Settings → Credentials. The page is available at /settings/credentials.
  2. For a proxy that you operate, use Add a customer-operated deployment. Enter its Name and Inference URL, then select Create deployment.
  3. Under Management secret, select Generate secret and confirm the action. The Management secret generated dialog reveals the value once. Copy it and store it securely before selecting Done.
  4. Under Configuration pull credential, select Generate credential and confirm the action. The Pull credential generated dialog also reveals its value once. Copy it and store it securely before selecting Done.
  5. Provision a reachable proxy with the deployment identity, management secret, configuration pull credential, and inference address. If you have an authorized source checkout, follow the customer-operated proxy CDK and local-build instructions in aws/runner-proxy-cdk/README.md. The package and its setup guide are not publicly available yet. You run the documented build, deployment, certificate, and DNS steps in your own AWS account. Keep the management and inference addresses distinct.
  6. Return to the deployment's Registration controls. Under Management endpoint, enter the registered management address in Public HTTPS URL. Use the HTTPS hostname covered by the management certificate, not the raw load balancer hostname.
  7. Select Check. After the candidate succeeds, select Save endpoint. Saving performs a second server challenge before it stores the management endpoint.
  8. Confirm that Registration shows Registered and a current Encryption key generation. Connect Claude remains unavailable until the proxy reports that key.

Deployment cards identify Customer operated and Evident hosted deployments. An Evident-hosted card shows Shared deployment because an Evident operator provisions it. Tenant controls do not register or delete the shared hosted deployment.

Create a pool and connect Claude

  1. Under Credential pools, enter a name in Create a pool and select Create pool.
  2. Select Connect Claude for the pool and complete the credential connection.

Assign a runner

  1. In the pool, find Assigned runners.
  2. Under Add a runner, choose an eligible runner and select Assign. A runner without a team is marked No team assigned. A runner already in a pool is marked Already assigned to that pool instead.
  3. To remove an assignment, select Unassign beside the runner.

Generate the runner's inference token

  1. Under the assigned runner's Inference token controls, select Generate token.
  2. In the Inference token generated dialog, follow the warning: Copy this token now. It cannot be recovered after you close this dialog. Select Copy token, store the value securely, then select Done.

After a token exists, the runner's controls offer Rotate and Revoke. Rotating stops the current token immediately and reveals its replacement once. Revoking stops the current token without creating a replacement.

Before you configure OpenCode

  • The runner is assigned to a credential pool.
  • You have the deployment's inference address (base_url).
  • You have the runner's dedicated inference token. Evident shows this token once, so copy it before leaving the step that issues it.

Use the inference address for OpenCode requests. Do not use the proxy's management address or the runner's Evident control-plane key here. They are different credential and trust domains.

Add the proxy provider

Add the provider object below to your existing opencode.json. Merge this provider entry into the file; do not replace the file or its existing providers and plugins.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "evident-proxy": {
      "name": "Evident credential proxy",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://<inference-base-url>/v1",
        "apiKey": "<show-once-dedicated-inference-token>"
      },
      "models": {
        "<served-model-id>": {
          "name": "Model served by this pool"
        }
      }
    }
  }
}

Replace <inference-base-url> with the deployment's inference address and <show-once-dedicated-inference-token> with the dedicated token. Replace <served-model-id> with a model ID that the assigned pool serves, and add one explicit entry for each served model. Do not list models that the pool does not serve.

Keep your existing providers

The snippet uses the distinct evident-proxy provider ID. It does not override provider.anthropic, so your existing Anthropic configuration continues to use its own credentials. It also leaves your existing plugin entries untouched.

Select a model with the evident-proxy/<served-model-id> identifier after you have entered the model IDs served by your pool. The exact model list comes from the pool, not from this example.

What this page does not validate

This page does not deploy a proxy, register a live management endpoint, connect a real provider, or make a remote inference request. It does not claim that the example token or endpoint has passed production acceptance. Hosted provisioning remains operator-owned, Evident does not update opencode.json automatically, and the dashboard currently offers Connect Claude rather than a general provider connection flow.