Skip to content

Add Codex Desktop App support to thv llm setup #5785

Description

@jerm-dro

Why

#5783 tracks LLM gateway support for the Codex CLI. Codex also ships a separate Desktop app (Electron, macOS/Windows only — no Linux) for supervising multiple agent threads. It's a distinct install/detection target from the CLI, so it needs its own client entry to be auto-detected and configured by thv llm setup, even though it largely shares config with the CLI.

What we know

Codex Desktop reads the same ~/.codex/config.toml and ~/.codex/auth.json as Codex CLI — same custom model_providers config, same cached login. This is unlike Claude Desktop, which needed a dedicated credential-helper mode (pkg/client ModeCredentialHelper) because it uses a completely separate configLibrary document model.

Practically, this likely means:

  • Once Add Codex CLI support to thv llm setup #5783 lands (CLI direct-mode config.toml patching), Codex Desktop may work automatically since it reads the same file — this issue is partly about verifying that, not building a second write path.
  • Detection still needs its own client entry (distinct LLMDetectRelPath/binary check for the Desktop app bundle, since "is Codex Desktop installed" is a different check than "is the codex CLI binary on PATH").

Known upstream caveats to account for

References

Metadata

Metadata

Assignees

Labels

cliChanges that impact CLI functionalityenhancementNew feature or requestllm gatewayLLM gateway authentication feature

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions