Skip to content

CONNECTIONS

Your tools.
Connected.

Bring ModelMesh to the tools you already use. Choose your tool and model, then follow a setup made for your workflow.

One ModelMesh keyYour choice of model
Create an API key

CHOOSE YOUR TOOL

14 setup guides

Responses API

Connect Codex CLI

Official documentation

Connect your terminal workflow through a custom ModelMesh provider.

  1. 01

    Install Codex CLI

    Install the CLI, or skip this step if Codex is already installed. Follow the official documentation for platform requirements.

    Terminal
    npm install -g @openai/codex
  2. 02

    Set your key for this terminal

    The CLI reads MODELMESH_API_KEY from its environment. Keep your key out of your repository.

    PowerShell
    $env:MODELMESH_API_KEY = 'YOUR_MODELMESH_KEY'
  3. 03

    Add your ModelMesh provider

    Merge these settings into your user-level file. Keep the model and model_provider settings above all TOML tables. Preserve any other settings you already use.

    ~/.codex/config.toml
    model = "YOUR_MODEL_ID"
    model_provider = "modelmesh"
    
    [model_providers.modelmesh]
    name = "ModelMesh"
    base_url = "https://www.modelmesh.in/api/v1"
    env_key = "MODELMESH_API_KEY"
    wire_api = "responses"
    requires_openai_auth = false
    supports_websockets = false
  4. 04

    Open Codex

    Run Codex from the same terminal. Requests use the Responses endpoint; built-in OpenAI features may differ with a custom provider.

    Terminal
    codex
  5. 05

    Check your first request

    Start with a small prompt, then review Usage and Request logs in your dashboard. Coding tools need a model with tool-calling support. A successful response confirms this tool and model work together.

Connections · Model Mesh