Skip to main content

OpenAI-compatible endpoint guide

Test a model endpoint before relying on it

Build a concrete compatibility record for a model endpoint before sending real app work through it.

4 min readUpdated Start the guide

An endpoint described as OpenAI-compatible is not automatically compatible with every coding agent or tool call. First identify the exact connection method available in your workspace, then test the behaviors your intended task needs using sample data.

On this page

Requirements

Before you start

Make sure you have these in place before following the steps:

  • The endpoint owner's approved URL, model ID, authentication method, and data-handling rules.
  • A supported connection path confirmed for the chosen agent or provider in your workspace.
  • A synthetic repository or noncritical app and a small authorized test budget.
The Task settings dialog with model, effort, microphone and tool activity settings.
Task settings shows the options exposed by the connected agent. Example model and account; available options vary. Open full-size screenshot
Step 1 of 6

Write the connection facts before configuring anything

Obtain the precise API base, model identifier, and supported request protocol from the endpoint operator. Keep the key in the approved credential control. Do not put a URL into a Model field or assume a chat-completions endpoint can satisfy a client that needs another protocol.

Endpoint compatibility record
Purpose: explain and edit a small validation function
Approved API base: https://models.example.com/v1
Model ID: <exact-model-id>
Authentication: <approved credential method; no key here>
Required behavior: streamed replies, file tools, command results, interruption, error reporting
Data: synthetic test app only
Budget and owner: <agreed limits and approver>
Step 2 of 6

Confirm the connection path the workspace offers

Use the setup for the selected supported provider or agent. OpenCode offers provider-specific connection methods and model choices; those are determined by its installed catalog. A generic endpoint claim does not establish that a custom URL wizard exists for every harness. Resolve the path before authorizing usage.

Step 3 of 6

Verify access from the actual execution environment

Confirm with the endpoint operator that the workspace can reach the service using the approved network and authentication arrangement. A successful request from your laptop does not prove the workspace can connect. Read a failed connection's error without exposing headers, keys, or private application data.

Step 4 of 6

Run a small read-only task first

Ask the connected agent to locate a validation function and explain its behavior without editing. Inspect whether the response finishes, tools return useful results, and errors are visible. A text answer alone does not establish that file or command tools work.

Step 5 of 6

Test one bounded edit and its check

On the sample app, request a small validation change with a known test. Observe file edits, the test result, interruption, and continuation. Use the selected agent's actual controls rather than assuming capabilities from another provider. Stop if errors become ambiguous or work is silently repeated.

Step 6 of 6

Record what passed and what remains unsupported

Inspect the diff and compare the app's behavior with the acceptance criteria. Record the tested agent, model, connection method, and missing behaviors. Keep the endpoint out of recurring or sensitive work until the required checks pass and the responsible owner accepts the remaining limits.

Check the result

  • The record names an approved connection method and exact model.
  • Read-only, edit, and check behavior have a recorded pass or failure.
  • Unsupported behaviors and the permitted workload are explicit before broader use.

Troubleshooting

The endpoint returns text but tools fail or the task never finishes.

Check protocol, streaming, tool-call, and continuation support with the endpoint operator. A shared API label does not prove those behaviors; narrow the test and preserve the actual error.

You cannot find a custom endpoint field for the chosen agent.

Confirm the supported setup path with the workspace owner. Do not edit unrelated system configuration or paste an endpoint into a model selector to bypass a missing integration.

Availability and limits

  • This is a compatibility test, not a promise that every custom gateway has a self-service connection flow.
  • Model access, networking, tool support, and billing must all match the chosen agent. Endpoint compatibility does not create universal dashboard feature parity.

Related documentation

  • Agent Dashboard
  • OpenCode provider connections: opencode.ai/docs/providers/
  • OpenCode model selection: opencode.ai/docs/models/

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.