Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt

Use this file to discover all available pages before exploring further.

Installation

Offizieller Download (macOS-Version)

https://openai.com/en/codex/

Installation per Kommandozeile

npm install -g @openai/codex

Konfiguration der Umgebungsvariablen

Konfiguration über Konfigurationsdateien

  1. Bearbeiten Sie die Konfigurationsdatei ~/.codex/config.toml und fügen Sie die folgenden Einstellungen hinzu:
profile = "aihubmix"

[model_providers.aihubmix]
name = "aihubmix"
base_url = "https://aihubmix.com/v1"
personality = "pragmatic"
wire_api = "responses"

[profiles.aihubmix]
model = "gpt-5.2"
model_provider = "aihubmix"
model_reasoning_effort = "high"
  1. Bearbeiten Sie die Konfigurationsdatei ~/.codex/auth.json und ändern Sie die folgenden Einstellungen:
{
  "OPENAI_API_KEY": "AIHUBMIX_API_KEY"
}

Konfiguration via cc-switch

  1. Starten Sie CC-Switch und fügen Sie den Anbieter hinzu.
Codex 1
  1. Wählen Sie aus der Voreinstellungsliste „AiHubMix”.
Codex 2
  1. Geben Sie Ihren Key in das Feld „API Key” ein und klicken Sie auf „Add”, um die Einstellungen zu speichern.
Codex 3
  1. Kehren Sie zur Startseite zurück, wählen Sie „AiHubMix” aus der Anbieterliste und klicken Sie auf „Enable”, um es zu verwenden.
Codex 4

Codex verwenden

Verwendung im Terminal

  1. Öffnen Sie das Terminal, navigieren Sie in Ihr Projektverzeichnis und führen Sie den Befehl codex aus.
cd /your/project/path
codex
  1. Legen Sie die Berechtigungen nach Bedarf fest.
Codex 5
  1. Wählen Sie das benötigte Modell anhand Ihrer Anforderungen.
Codex 6
  1. Geben Sie natürliche Sprache ein; wenn Sie eine normale Antwort erhalten, war die Konfiguration erfolgreich.
Codex 8

Verwendung in der Codex-Desktop-App

  1. Öffnen Sie die Codex-Desktop-App und wählen Sie das Arbeitsverzeichnis.
  2. Geben Sie die Aufgabe in das Eingabefeld ein; wenn Sie eine normale Antwort erhalten, war die Konfiguration erfolgreich.
Codex 9

Nützliche Befehlsreferenzen

Hilfe-Befehl

codex -h

Vollständige Befehlsoptionen

Usage
  $ codex [options] <prompt>

Options
  -h, --help                 Show help information and exit
  -m, --model <model>        Specify the model to use (default: codex-mini-latest)
  -i, --image <path>         Path to the file containing image input
  -v, --view <rollout>       View previously saved session records
  -q, --quiet                Non-interactive mode, only prints the final output of the assistant
  -a, --approval-mode <mode> Override approval policy: 'suggest', 'auto-edit', or 'full-auto'

  --auto-edit                Automatically approve file edits; will still prompt for command confirmation
  --full-auto                Automatically approve edits and commands in sandbox environment

  --no-project-doc           Do not automatically include 'codex.md' file from the repository
  --project-doc <file>       Include specified Markdown file as context
  --full-stdout              Do not truncate stdout/stderr of command output

Dangerous Options
  --dangerously-auto-approve-everything
                             Skip all confirmation prompts and execute commands directly (no sandbox protection)
                             For use only in temporary local testing environments

Experimental Options
  -f, --full-context         Start in "full context" mode, loading the entire repository into context
                             and applying bulk edits in a single operation
                             Only compatible with --model parameter

Examples
  $ codex "Write and run a Python program that prints ASCII art"
  $ codex -q "Fix build issues"

Zuletzt aktualisiert: 2026-06-01