DurinDoor
Providers

API key providers

Add vendor credentials, configure Bedrock authentication, and verify provider access.

Most paid APIs are API-key providers: OpenAI, Anthropic, Groq, Mistral, DeepSeek, and other providers marked as API-key providers. You paste the upstream secret; DurinDoor stores it on a connection and sends it as Authorization: Bearer or the header that provider declares (x-api-key for Anthropic-style transports).

Open Dashboard, then Providers, then the provider. Add API Key (or Add Connection) opens the form.

Pick the provider card. Providers that support both OAuth and API keys offer both methods on their page.

Give the connection a name. The dialog fills the first unused name in the main, main-2, main-3 sequence. Reopening after a successful add clears secrets and provider-specific fields; a background refresh while the dialog is open does not.

Paste the key. Cloudflare Workers AI and Snowflake Cortex also require an account id (name|apiKey|accountId on bulk lines). Azure wants endpoint, API version, deployment, and optional organization. Google Programmable Search needs cx.

For Azure OpenAI (azure), an explicit unsupported-token-parameter response triggers one retry with the alternate token-limit spelling. A successful retry is remembered per deployment URL for the life of the process; the output limit is retained, and unrelated errors follow normal account fallback.

Set priority if you already have another key for this provider. Lower numbers run first under fill-first selection. Optional: default model, proxy pool, per-connection proxy URL.

Save, then send a request using one of the connection's models. A duplicate provider, credential, and name is rejected with HTTP 409. Validation probes stop after 10 seconds; connection tests stop after 15 seconds.

ollama-local and other noAuth providers may omit the key. Compatible nodes still require a value even when the upstream ignores it; use a placeholder such as local-dev-key. See OpenAI-compatible nodes.

Bulk add accepts one key per line (name|sk-key, or a bare key that gets an auto name). Bulk create is create-only: a name collision never overwrites a saved key.

Anthropic API-key requests

For official Anthropic API-key requests, DurinDoor removes the leading Claude Code system identity and Claude Code beta flag. OAuth requests and third-party gateway requests retain their existing identity behavior.

OpenAI completion token limits

For the openai provider, DurinDoor sends Chat Completions output limits as max_completion_tokens. Clients may still send max_tokens; if both fields are present, the explicit max_completion_tokens value wins and the legacy field is removed. This also applies to GPT-6-family models when using the Chat Completions transport. Native Responses requests retain max_output_tokens; this rule does not change the separate Chat-to-Responses translation. Custom compatible nodes and other providers keep their model-specific normalization.

Amazon Bedrock credentials

Bedrock is the one API-key provider that accepts three credential shapes. Pick the region where your models are enabled, then fill in exactly one of these in the AWS Credentials block:

ModeWhat you enterRefresh
Profile (SSO)AWS Profile only, API Key left emptyAutomatic, the AWS SDK re-resolves the profile
Static AWS keysAWS secret access key in API Key, key id in Access Key ID, Session Token for temporary ASIA... keysNone, paste new keys when they expire
Bedrock API keyThe Bedrock API key in API Key on its ownNone

A profile takes precedence over everything else, and static AWS keys are selected by the presence of an Access Key ID. A connection that only carries an API Key keeps behaving exactly as before.

Profile mode is the recommended path. Name a profile from ~/.aws/config, save the connection with an empty API Key, then run aws sso login --profile <name>. DurinDoor never reads or stores the SSO token: the AWS SDK resolves it from the local token cache on each request and refreshes it on expiry, so the saved connection holds nothing secret. source_profile role chaining and credential_process profiles resolve the same way. Only the named profile is used: if it is missing or fails to resolve, the request fails with HTTP 401 and never falls back to the server's own AWS credentials (environment variables, ECS or instance role).

Saving a profile-only connection skips the usual API-key requirement, so POST /api/providers and the validate probe both accept an empty key. The profile is resolved as the user running DurinDoor, and a profile can run a credential_process command, so setting one is limited to operators (the dashboard or the CLI token). An application API key gets HTTP 403 from POST /api/providers, PUT /api/providers/<id>, and POST /api/providers/validate when the request names a profile. A profile name must match ^[A-Za-z0-9_.:-]{1,64}$; anything else gets HTTP 400.

Check, Test and the health monitor verify profile and static-key connections with a SigV4-signed Converse call that carries no messages. AWS checks the signature before the body, so a ValidationException means the credentials work and no inference runs. An AccessDeniedException also counts as valid credentials: AWS accepted the key and IAM denied the model. The IAM secret access key is never sent as a bearer token. A Bedrock API key connection keeps the bearer probe.

Temporary AWS keys beginning with ASIA require a session token. A missing token is rejected with 401. The session token is encrypted separately and is not returned in provider responses.

When editing, leave the session-token field blank to keep the saved token. Changing or clearing the Access Key ID also clears it. Entering a new API key clears the saved profile after validation. For an expired SSO session, run aws sso login --profile <name> again.

AI Studio Build and hosted Devin via CLIProxyAPI

Run an operator-controlled CLIProxyAPI instance on loopback port 8317. Configure a CLIProxyAPI client key under access.api-keys, then add a CLIProxyAPI API-key connection under Providers using that key. Keep Google and Cognition sign-in within your authorized upstream runtime. The saved connection gives DurinDoor access to the sidecar's OpenAI-compatible models and chat endpoints.

For AI Studio Build, use an app you are authorized to operate and follow the CLIProxyAPI relay setup. On the verified CLIProxyAPI version, keep oauth.providers.aistudio.ws-auth: true and configure the app to authenticate to /v1/ws with a sidecar client key. Use WSS if the app connects across a network. Keep the app private and protect the relay key and any logs containing its upgrade URL. The relay is available in standalone CLIProxyAPI mode.

Use a unique alias under the aistudio channel of CLIProxyAPI's oauth.model-alias configuration to select the relay even when another backend serves the same base model. Set name to a model that CLIProxyAPI lists while the app is connected and choose an alias unused by other upstreams.

oauth:
  providers:
    aistudio:
      ws-auth: true
  model-alias:
    aistudio:
      - name: "<model-id>"
        alias: "office-build"

In DurinDoor, fetch the connection's models and call cpa/<alias> through Chat Completions. DurinDoor reads the sidecar's OpenAI JSON and SSE usage fields through its standard accounting path. After the app disconnects, re-fetch the models. Cached catalogs can retain the last list until refresh.

For hosted Devin, use the exact model ID discovered from CLIProxyAPI, including its devin/ namespace when present, for example cpa/devin/<model>. DurinDoor's Gemini CLI, Devin cloud-agent and Devin CLI connections serve their own transports.

Scope DurinDoor client keys to the intended saved connection. CLIProxyAPI client keys on one instance share its upstream pool. For an isolated upstream account or relay, use a dedicated CLIProxyAPI instance and an independently configured OpenAI-compatible connection with its own base URL and key. Keep the instance reachable only from the clients and app that you authorize.

DeepSeek DSML tool calls

For OpenAI-format responses from an effective DeepSeek model, DurinDoor converts complete visible DSML invoke frames into structured tool calls, including when a combo selects the model. Streaming frames can span chunks; malformed, incomplete, or oversized frames remain text. Existing structured calls are preserved. The gateway only translates response data and does not execute the calls.

Env fallbacks

Saved connections are the path you should use. A handful of executors still read process environment when a connection field is empty:

VariableUsed when
OPENAI_API_KEYAzure executor, if the connection has no apiKey or accessToken. Not a generic OpenAI connection.
AZURE_ENDPOINT, AZURE_API_VERSION, AZURE_DEPLOYMENT, AZURE_ORGANIZATIONAzure URL and headers when providerSpecificData omits them. API version default is 2024-10-01-preview.
GITLAB_DUO_BASE_URL / GITLAB_BASE_URLGitLab Duo origin; default https://gitlab.com.
FIRECRAWL_API_KEYAuto-configure for the Firecrawl web-fetch connection.
CLI_DEVIN_BINOverride Devin CLI binary discovery.
WINDSURF_API_KEYDevin CLI executor, if the connection has no key or token.
CLIPROXYAPI_HOST / CLIPROXYAPI_PORTCLIProxyAPI listen address.

OAuth client overrides (GEMINI_OAUTH_CLIENT_ID, ANTIGRAVITY_OAUTH_CLIENT_ID, and their secrets) belong on Connecting accounts. The full operator list is Environment variables.

Scoping a DurinDoor API key to accounts

A DurinDoor client key (sk-...) can be limited to a subset of provider connections. An empty account scope means unrestricted: the key may use every reachable account. Assigning one or more connection ids opts into the restriction. Clearing the list restores the unrestricted default.

Details, deletion guards, and the HTTP shape live in API key scoping. Deleting a connection that is the last scoped account for a key is rejected with HTTP 409 API_KEY_SCOPE_WOULD_BROADEN so the key cannot silently become unrestricted.

Test a saved key from the provider page. Connection tests stop after 15 seconds. Custom URLs still go through the outbound SSRF guard. Hidden registry providers cannot be created through this form; POST /api/providers returns Invalid provider.

Priority is per provider. Drag accounts on the provider page to change their order. Fill-first selection then uses that order. See Connecting accounts for how that interacts with account fallback.

Edit Connection does not display the stored secret. To rotate a vendor key, create its replacement at the vendor, update the connection, and verify a request before revoking the old credential.

Proxy fields on the add dialog are optional: connectionProxyEnabled, connectionProxyUrl, connectionNoProxy, and proxyPoolId. __none__ means no pool. A bad pool id is rejected before the connection is written.

google-pse requires cx (Programmable Search Engine id) in provider-specific data. Without it, create returns 400.

If a probe passes but chat fails, check model entitlement and deployment names. Bedrock AccessDeniedException can mean the credentials are valid but IAM denies that model; a passing credential probe does not grant inference permission.

NVIDIA assistant reasoning history

For NVIDIA NIM, assistant messages use reasoning_content. If a client replays reasoning as an alias, DurinDoor removes that duplicate field and keeps an existing nonblank canonical value. The alias fills a missing, null or blank canonical value before any DeepSeek reasoning-placeholder handling. User, system and tool messages are unchanged, as are other providers' existing rules. This is field normalization, not validation of arbitrary reasoning value types.

Qoder model queue

When Qoder reports code 10605 (a model queue, not a billing block), DurinDoor holds the request and replays it with a fresh signature after the delay Qoder asks for (15 to 60 seconds). It stops after 6 attempts or QODER_MODEL_QUEUE_MAX_WAIT_MS milliseconds (default 180000), whichever comes first, and then returns a retryable 503 with code qoder_model_queued so a combo can move on. Billing signatures (110, 112, pricingUrl) still return 403 immediately and are never replayed. A closed client connection ends the wait.

Unverified

  • No live Qoder call was made. The 10605 payload shape and queue timings come from upstream commit text. Upstream also polls a queue-status endpoint; that is not ported.

DeepAI

deepai is image-only; DeepAI has no chat endpoint. Requests to /v1/images/generations with model text2img are sent to https://api.deepai.org/api/text2img with the api-key header and return the output_url image link. Optional size (WIDTHxHEIGHT, 128 to 1536 in multiples of 32) and negative_prompt are forwarded.

API access requires your own DeepAI Pro subscription; DurinDoor does not provide one. DeepAI's asynchronous video routes are not supported yet.

Unverified

  • No live call was made. Requests are sent as multipart/form-data per the DeepAI guide (its JavaScript example sends JSON instead); response and error bodies follow deepai.org/docs only.
  • DeepAI's resale and redistribution terms were not reviewed. Use your own key for your own requests.

Pioneer (Fastino)

Pioneer is now Fastino: api.pioneer.ai is retired and the API lives at https://api.fastino.ai/v1. Create a key at the Fastino dashboard (keys start with fast_sk_; legacy pio_sk_ keys no longer work). The provider lists the decoder models from the Fastino model catalog. GLiNER and GLiDE models need a request schema or /v1/systemone and are not exposed here.

Unverified

  • No live call was made. Whether /v1/chat/completions serves the listed decoder model IDs without a schema, and the contents of the authenticated /v1/models, are unconfirmed.
  • Model IDs and context windows come from docs.fastino.ai only.

Gemini Interactions

In Dashboard → Providers → Gemini Interactions, choose Add API Key and paste a Google AI Studio API key. Connection validation and model discovery use Google's model list. Discovery shows the supported text subset available to that key.

Send a single text turn to POST /v1beta/interactions with your DurinDoor key in x-goog-api-key. For example:

{"model":"gemini-interactions/gemini-4-hydrogen","input":"Explain how a sundial works.","store":false,"stream":true}

Omit stream or set it to false for JSON. In SSE, read text from step.delta and token usage from interaction.completed. A provider failure after the stream opens arrives as an error event. DurinDoor chooses an eligible Gemini Interactions connection and sends its stored Google key upstream.

The same provider-qualified model works on POST /v1/chat/completions with one text-only user message. DurinDoor always sends store: false. Interaction IDs identify the current response only. This integration supports foreground creation with text input and output. The existing Gemini connection still serves GenerateContent and the Gemini media endpoints.

See the Google Interactions overview and streaming guide.

On this page

Edit on GitHub