In short.
Air-Gapped Devin Models File is a setup reference for administrators connecting federal Devin to model servers, but success depends on matching the server's API and the agent's startup environment. The page describes strict schema version 0, endpoint authentication, offline validation and Desktop configuration behavior. Every listed model's key variable must be set, even when its value is empty, and configuration changes require restarting the agent. Pricing, model quality and actual endpoint interoperability are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete selected page at [https://docs.devin.ai/federal/air-gapped/models-file.md], including its federal-deployment notice, schema version 0, examples, environment handling, gateway authentication, validation, restart behavior, Desktop saving restrictions and error codes. All linked pages are excluded. No commands, software or inference requests were executed. Runtime compatibility, performance, security behavior and deployment readiness remain unverified.
The overview
Identity
This is a reference page in Devin's documentation for federal deployments: [https://docs.devin.ai/federal/air-gapped/models-file.md]. It explains the models.json file that tells air-gapped Devin where to send model inference requests.
The resource is documentation, rather than a model, model server or installable integration. Its scope is configuring model connections for the CLI and Desktop.
Assessment
The guide provides enough detail to author a configuration file and understand common validation and startup failures. Its strongest practical details concern strict field validation, credentials inherited by the agent process, gateway authentication and file ownership.
It is most useful alongside an existing federal Devin installation and separately documented model endpoints. The examples do not establish that any named model or server works correctly with Devin in practice.
Users
The primary audience is administrators and developers responsible for model access in federal air-gapped Devin deployments. Desktop users troubleshooting missing credentials or unavailable models also have directly relevant guidance.
Readers need familiarity with JSON, environment variables, endpoint addresses and file permissions. Beginners receive concrete examples, but model hosting, network provisioning and general installation are outside this page.
Capabilities
The configuration supports multiple named model entries, optional display labels and at most one explicitly marked default. Users select entries through --model on the CLI or /model within a session.
Entries can use Chat Completions or Responses, declare vision, reasoning and parallel_tool_calls capabilities, and specify context and output limits. These declarations describe configuration; the page does not demonstrate the corresponding model behavior.
Custom authentication headers, additional static headers and required URL query strings accommodate internal gateways. The page also documents offline validation, automated JSON diagnostics and Desktop settings behavior.
Using it
Requirements
The setup assumes federal air-gapped Devin and an accessible OpenAI-compatible endpoint. HTTPS is required except for HTTP connections to loopback hosts, including localhost, addresses in 127.0.0.0/8 and IPv6 loopback.
Every model's api_key.env must name an environment variable present in the agent's own process environment at startup. Even an endpoint that ignores authentication needs the variable to exist; its value may be empty.
The page does not establish hardware requirements, supported Devin builds or complete endpoint compatibility requirements.
Mechanism
Devin resolves one configuration file, preferring the absolute path in DEVIN_MODELS_FILE over /etc/devin/models.json, or C:\ProgramData\Devin\models.json on Windows. Model backends initialize when the process starts.
The top level requires schema_version equal to 0 and a nonempty models array. Each entry requires a unique name, base_url, api_key.env and positive max_context_tokens. Unknown fields are rejected. Optional max_output_tokens must be positive and cannot exceed the context limit.
The api field defaults to chat_completions; responses is the other option. Devin appends the relevant request path and /models to base_url, preserving any query string. Authentication defaults to Authorization with a Bearer token; api_key.header can instead send the bare key in another header. Static headers cannot contain secrets or override the protected authentication headers.
Setup
Create the schema version 0 file at the default location or select a file you own through DEVIN_MODELS_FILE. Set every referenced key variable in the environment that actually launches the agent.
For Desktop, the page recommends devin.acp.agentEnv, with variables under devin-cli. Variables exported in a terminal may be absent from an app launched through the operating system's graphical launcher. Restart the agent or app after changing these settings.
Use devin models validate for offline file checks; --file selects another file and --format json produces structured diagnostics. Use devin airgap doctor from the agent's environment for additional checks. The Desktop Test button probes /models with the configured headers and query string. Restart the CLI process or Desktop agent after editing model configuration.
Example
The page's Ollama entry uses name llama3.1:8b, base_url [http://localhost:11434/v1], api_key.env named OLLAMA_API_KEY and max_context_tokens of 32768. With api omitted, Chat Completions is the default. OLLAMA_API_KEY must still exist in the agent's environment, even if the server ignores it.
These are illustrative configuration values, not verified model limits or execution results. The page also illustrates a gateway using an api-key authentication header, an x-tenant routing header and an api-version query parameter.
Assessment & evidence
Limitations
A missing or invalid file prevents standalone CLI startup. Desktop instead starts its agent with no models, so inference sessions cannot run. Desktop validates before saving, writes atomically and refuses to replace another user's file with MDL014; a root-owned configuration therefore requires an administrator's disk edit or a separate user-owned file.
The page mentions MDL016 for invalid or disallowed headers but does not include it in the error-code table. The schema permits at most one default, while the MDL009 remedy says to leave exactly one; behavior when none is marked default is not explained.
The page does not demonstrate inference reliability, tool-call correctness, latency, throughput or security properties. A successful /models probe alone does not establish successful inference.
Fit and trade-offs
The practical trade-off is control over inference destinations in exchange for responsibility for endpoint compatibility, credentials and model limits. Strict validation can expose configuration mistakes early, but server behavior requires separate verification.
This makes the guide useful for configuring an existing deployment. It supplies too little evidence to choose model hardware, compare coding quality or establish whether an entire deployment meets an organization's requirements.
Alternatives
The page illustrates vLLM, Ollama and internal gateways as endpoint arrangements, with Chat Completions and Responses as API options. These are examples rather than comparative recommendations.
It provides no comparison with other configuration guides or coding assistants, and no evidence that one illustrated server or model performs better than another.
Evidence
The evidence is the complete documentation page at [https://docs.devin.ai/federal/air-gapped/models-file.md]. It contains a schema reference, sample configurations, command examples, illustrative diagnostic output and a notice limiting the documentation to federal deployments.
These support an explanation of documented behavior, not independent confirmation that the software behaves as described. Linked installation, error-code, general Devin and documentation-index pages are outside the supplied evidence.
Access & freshness
Costs
Devin deployment pricing, endpoint charges, hosting costs and hardware costs are unknown from this page. It explicitly states that devin models validate works without a valid license, which permits preparing the file before license installation; this does not establish free use of Devin or model inference.
Rights
The page supplies no explicit documentation license or redistribution permission. Devin usage terms and the licenses governing illustrated models and endpoint software are also not established. Mentioning a model in a configuration example does not establish permission to obtain or deploy its weights.
Freshness
The page was captured on 15 November 2026 at 00:48:40 UTC and documents schema version 0. No publication date, last-update date or Devin build number is supplied, so applicability to a particular installed release remains unknown.
Next steps
For an existing federal Devin deployment, confirm that the installed release accepts this schema and that the intended endpoint supports the chosen API, authentication and capabilities. Obtain actual context and output limits from the endpoint's documentation rather than assuming the sample values apply.
Prepare the file and startup environment, validate offline, check endpoint access, restart the agent and then verify real inference and required tool behavior. Obtain deployment pricing and applicable licenses separately before committing resources.
