Skip to main content

codex_web/
lib.rs

1mod auth;
2mod bridge;
3mod components;
4mod dashboard;
5mod directory;
6mod network;
7mod server;
8mod server_support;
9mod stream;
10
11use std::path::PathBuf;
12
13pub use server::run;
14
15/// Command used to launch the app-server that backs the browser UI.
16#[derive(Debug, Clone, PartialEq, Eq)]
17pub enum AppServerCommand {
18    /// Re-execute the standalone web binary in its hidden app-server mode.
19    Standalone { executable: PathBuf },
20    /// Re-execute the full Codex CLI using its public `app-server` subcommand.
21    CodexCli { executable: PathBuf },
22}
23
24/// Settings supplied by the `codex web` command.
25#[derive(Debug, Clone, PartialEq, Eq)]
26pub struct WebOptions {
27    pub port: u16,
28    pub open_browser: bool,
29    pub cwd: Option<PathBuf>,
30    pub app_server_command: AppServerCommand,
31    pub config_overrides: Vec<String>,
32    pub strict_config: bool,
33    pub reset_token: bool,
34}