Skip to main content

codex_web/
lib.rs

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