---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-ycodex.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-ycodex.md
  - href: https://sourcecraft.dev/portal/docs/ru/cli-ref/src-ycodex.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21973087
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21973087

# src ycodex

Launch the AI Studio Codex binary with SourceCraft authentication, models and account through the local IPC proxy.

With --aistudio, uses native AI Studio authentication and backend in the ycodexai home.

## Usage

`src ycodex [-- codex-args...] [flags]`

### Available commands

| Command | Description |
| --- | --- |
| [install](src-ycodex-install.md) | Install Codex if missing |

### Examples

`src ycodex`

`src ycodex --autoinstall`

`src ycodex --model MODEL -- --no-alt-screen`

### Flags

| Flag | Description |
| --- | --- |
| `--aistudio` | Use native AI Studio authentication and backend instead of SourceCraft |
| `--autoinstall` | Auto-install Codex if not present |
| `--log-llm` | Log LLM requests to files (via local proxy) |
| `--model string` | Model to use (overrides config) |
| `--no-tools` | Do not load sourcecraft API tools, commands and modes |
| `--reset-config` | Reset bundled config files to defaults |

### Inherited flags

| Flag | Description |
| --- | --- |
| `--env string` | Override Sourcecraft environment (use 'src envs' to list available) |
| `--json string` | Output JSON, optionally filtered (--json or --json=field1,field2) |
| `--json-compact string` | Output compact JSON, optionally filtered |
| `-R, --repo string` | Select another repository using OWNER/REPO format |
| `-V, --verbose` | Enable debug logging output |

### Learn more

Use `src ycodex <subcommand> --help` for more information about a command.
