Skip to content

Support codex model_provider #965

@benjaminbauer

Description

@benjaminbauer

Currently t3code does not support model_providers for codex. When I try sending a prompt, I get

Image

These headers are sent by the codex cli.

Environment

OS: Linux (Arch)
t3code version: 0.0.10
Codex CLI version: 0.114.0

Custom provider: Portkey (model_provider = "portkey" in ~/.codex/config.toml)
Codex CLI config (working standalone)

model_provider = "portkey"

[model_providers.portkey]
base_url = "https://api.portkey.ai/v1"
env_key = "PORTKEY_API_KEY"
wire_api = "responses"

Running codex directly from the terminal works without issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions