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
- 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"
- Bearbeiten Sie die Konfigurationsdatei
~/.codex/auth.json und ändern Sie die folgenden Einstellungen:
{
"OPENAI_API_KEY": "AIHUBMIX_API_KEY"
}
Konfiguration via cc-switch
- Starten Sie CC-Switch und fügen Sie den Anbieter hinzu.
- Wählen Sie aus der Voreinstellungsliste „AiHubMix”.
- Geben Sie Ihren Key in das Feld „API Key” ein und klicken Sie auf „Add”, um die Einstellungen zu speichern.
- Kehren Sie zur Startseite zurück, wählen Sie „AiHubMix” aus der Anbieterliste und klicken Sie auf „Enable”, um es zu verwenden.
Codex verwenden
Verwendung im Terminal
- Öffnen Sie das Terminal, navigieren Sie in Ihr Projektverzeichnis und führen Sie den Befehl
codex aus.
cd /your/project/path
codex
- Legen Sie die Berechtigungen nach Bedarf fest.
- Wählen Sie das benötigte Modell anhand Ihrer Anforderungen.
- Geben Sie natürliche Sprache ein; wenn Sie eine normale Antwort erhalten, war die Konfiguration erfolgreich.
Verwendung in der Codex-Desktop-App
- Öffnen Sie die Codex-Desktop-App und wählen Sie das Arbeitsverzeichnis.
- Geben Sie die Aufgabe in das Eingabefeld ein; wenn Sie eine normale Antwort erhalten, war die Konfiguration erfolgreich.
Nützliche Befehlsreferenzen
Hilfe-Befehl
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