### Start CodexUI on Termux (Android) Source: https://github.com/friuns2/codexui/blob/main/README.md Installs Node.js and starts CodexUI on Android via Termux. Requires updating and upgrading packages first. ```bash pkg update && pkg upgrade -y pkg install nodejs -y npx codexapp ``` -------------------------------- ### Build the CLI Source: https://github.com/friuns2/codexui/blob/main/tests/website-docs-misc/codex-app-server-memories-default-and-opt-out.md Build the command-line interface before running tests or starting the server. ```bash pnpm run build:cli ``` -------------------------------- ### Run CodexUI Instantly Source: https://github.com/friuns2/codexui/blob/main/README.md Recommended way to start CodexUI immediately. Opens the application in your browser. ```bash # 🔓 Run instantly (recommended) npx codexapp # 🌐 Then open in browser # http://localhost:18923 ``` -------------------------------- ### Start Local Vite Server Source: https://github.com/friuns2/codexui/blob/main/tests/chat-composer-rendering/first-user-message-is-visible-immediately-in-new-chats.md Starts the local Vite development server with a specified home directory and port. Ensure to use an explicit test project folder. ```bash CODEX_HOME= npm run dev -- --host 127.0.0.1 --port 4173 ``` -------------------------------- ### Start CLI with Memories Enabled by Default Source: https://github.com/friuns2/codexui/blob/main/tests/website-docs-misc/codex-app-server-memories-default-and-opt-out.md Start the packaged CLI in light theme using a temporary Codex home directory. This command implicitly enables memories. ```bash CODEX_HOME= node dist-cli/index.js --no-open --no-tunnel --no-login --no-password --port 5900 ``` -------------------------------- ### Verify Server Startup Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/npm-run-dev-uses-cli-server-on-android.md Check the console output to confirm that the Codex Web Local server has started successfully. ```bash Codex Web Local is running! ``` -------------------------------- ### Add Skill CLI Command Source: https://github.com/friuns2/codexui/blob/main/llm-wiki/wiki/concepts/directory-hub-composio-skills.md Installs a skill from a specified source. The --yes and --global flags automate the process and install it globally. ```bash npx skills add --yes --global ``` -------------------------------- ### Start Local Vite Server Source: https://github.com/friuns2/codexui/blob/main/tests/accounts-feedback-observability/qodo-free-mode-state-write-fixes.md Starts the local Vite development server with a specified CODEX_HOME directory. This is used to test the creation of the directory if it does not exist. ```bash CODEX_HOME=/tmp/codex-missing-home-test pnpm run dev --host 127.0.0.1 --port 4173 ``` -------------------------------- ### Start CodexApp in Termux Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/termux-install-without-native-pty-build.md After installation, use this command to start the CodexApp server in Termux without initiating a login process. This allows you to access the app via a printed URL. ```bash codexapp --no-login ``` -------------------------------- ### Install Codexapp Globally on Windows Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/windows-npx-install-no-longer-depends-on-legacy-pty-package.md After verifying the npx installation, use this command to install codexapp globally on Windows. This ensures the application is available system-wide. ```bash npm i -g codexapp ``` -------------------------------- ### Start Android CLI Package Source: https://github.com/friuns2/codexui/blob/main/tests/providers-models/android-published-cli-loads-codex-app-server-models-through-local-proxy.md Use this command to start the `codexui-android` package in Android root. Ensure you replace `` with the correct package version. The flags `--no-open`, `--no-tunnel`, and `--no-login` are used to control the startup behavior. ```bash pnpm dlx codexui-android@ --port 17923 --no-open --no-tunnel --no-login ``` -------------------------------- ### Start CodexUI on Linux Source: https://github.com/friuns2/codexui/blob/main/README.md Ensures Node.js version is 18+ and then starts CodexUI. Run this in your Linux terminal. ```bash node -v # should be 18+ npx codexapp ``` -------------------------------- ### Install CodexApp on Termux Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/termux-install-without-native-pty-build.md Run this command in Termux to install the latest version of CodexApp globally. This is the primary installation step for the described scenario. ```bash npm i -g codexapp@latest ``` -------------------------------- ### Run Development Server in Docker Container Source: https://github.com/friuns2/codexui/blob/main/tests/auth-docker-runtime/fresh-docker-mobile-install-does-not-show-rate-limit-request-failures.md Starts the Codex UI development server within a Docker container. Ensure the container has the project installed and `@openai/codex` is set up. Port mapping is crucial for accessing the server from the host. ```bash CODEX_HOME=/tmp/codex-home CODEXUI_CODEX_COMMAND=$(command -v codex) pnpm run dev --host 0.0.0.0 --port 4173 ``` -------------------------------- ### Start Local Vite Server Source: https://github.com/friuns2/codexui/blob/main/tests/chat-composer-rendering/new-chat-live-thinking-and-stop-controls.md Starts the local Vite development server with specified host and port. Ensure CODEX_HOME is set to a valid isolated directory. ```bash CODEX_HOME= pnpm run dev --host 127.0.0.1 --port 4173 ``` -------------------------------- ### Start CLI with Cloudflare Tunnel Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/tailscale-cidrs-bypass-password-and-cloudflare-tunnel-is-opt-in.md Initiates the application server with the Cloudflare tunnel enabled. Verify that the tunnel URL appears in the startup output. ```bash npx codexapp --port 5900 --tunnel ``` -------------------------------- ### Start Server with --no-tunnel Override Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/tunnel-auto-mode-follows-tailscale-ip-detection.md Start the server with the `--no-tunnel` flag. This explicitly disables tunnel startup, regardless of whether a Tailscale IP is detected. ```bash npx codexapp --port 5900 --no-tunnel ``` -------------------------------- ### Start Codex UI Server (No Auth) Source: https://github.com/friuns2/codexui/blob/main/tests/auth-docker-runtime/android-opencode-zen-no-auth-model-filtering.md Starts the codexui server within the Android proot with no password, no tunnel, no open, and no login enabled. This is for testing the no-authentication model filtering. ```bash codexui --port 18935 --no-password --no-tunnel --no-open --no-login ``` -------------------------------- ### Start CodexUI on Windows (PowerShell) Source: https://github.com/friuns2/codexui/blob/main/README.md Verifies Node.js version is 18+ and then launches CodexUI. Execute these commands in PowerShell. ```powershell node -v # 18+ npx codexapp ``` -------------------------------- ### Start CLI with Sentry Integration Source: https://github.com/friuns2/codexui/blob/main/tests/accounts-feedback-observability/sentry-error-tracking-and-encrypted-auth-context.md Initiates the CLI application with Sentry error tracking enabled, disabling tunneling and automatic opening/login. ```bash node dist-cli/index.js --no-tunnel --no-open --no-login ``` -------------------------------- ### Build and Launch Android Assistant from Source Source: https://github.com/friuns2/codexui/blob/main/docs/index.html This snippet outlines the steps to clone the repository, build the frontend, prepare the Android environment, and finally build, install, and launch the application on an Android device. ```bash # clone git clone https://github.com/friuns2/openclaw-android-assistant.git cd openclaw-android-assistant # build frontend pnpm install && pnpm run build # prepare android cd android && bash scripts/download-bootstrap.sh # build + install + launch bash scripts/build-server-bundle.sh && ./gradlew assembleDebug && adb install -r app/build/outputs/apk/debug/app-debug.apk && adb shell am start -n com.codex.mobile/.MainActivity ``` -------------------------------- ### Build Command Source: https://github.com/friuns2/codexui/blob/main/llm-wiki/raw/fixes/opencode-zen-docker-auth-provider-models.md Command to build the project. ```bash pnpm run build ``` -------------------------------- ### Remove CodexApp Global Install Source: https://github.com/friuns2/codexui/blob/main/tests/cli-network-platform/termux-install-without-native-pty-build.md Use this command to uninstall CodexApp and clean up any global installations from your environment after testing. ```bash npm rm -g codexapp ``` -------------------------------- ### Start CLI with Memories Opt-Out Source: https://github.com/friuns2/codexui/blob/main/tests/website-docs-misc/codex-app-server-memories-default-and-opt-out.md Start the packaged CLI with the --no-memories flag to explicitly disable the memories feature. This is useful for testing the opt-out functionality. ```bash CODEX_HOME= node dist-cli/index.js --no-open --no-tunnel --no-login --no-password --no-memories --port 5900 ``` -------------------------------- ### Profile Browser Runtime Source: https://github.com/friuns2/codexui/blob/main/tests/thread-loading-state/deferred-ancillary-startup-refreshes.md Run this script to profile the browser runtime performance for deferred ancillary startup refreshes. Ensure the application is running and a large thread is available. The PROFILE_BASE_URL, PROFILE_ROUTE, and PROFILE_WAIT_MS environment variables should be configured appropriately. ```bash PROFILE_BASE_URL=http://127.0.0.1:4173 PROFILE_ROUTE="#/thread/" PROFILE_WAIT_MS=7000 node scripts/profile-browser-runtime.cjs ``` -------------------------------- ### Run Unit Tests Source: https://github.com/friuns2/codexui/blob/main/tests/website-docs-misc/codex-app-server-memories-default-and-opt-out.md Execute the unit tests for the app server runtime configuration. ```bash pnpm exec vitest run src/server/appServerRuntimeConfig.test.ts ``` -------------------------------- ### Verification Commands Source: https://github.com/friuns2/codexui/blob/main/llm-wiki/raw/fixes/copied-auth-provider-promotion.md Commands to run unit tests, build the project, and pack the application for verification. These commands help ensure the fix is correctly implemented and testable. ```bash pnpm test:unit src/server/freeMode.test.ts src/server/codexAppServerBridge.archive.test.ts src/composables/useDesktopState.test.ts src/api/codexGateway.test.ts pnpm run build pnpm pack --pack-destination /tmp ``` -------------------------------- ### Pack Current Branch Source: https://github.com/friuns2/codexui/blob/main/tests/auth-docker-runtime/android-opencode-zen-no-auth-model-filtering.md Packs the current branch into a tarball for installation. The output destination is specified by --pack-destination. ```bash pnpm pack --pack-destination output/playwright/android-ssh-fulltest ``` -------------------------------- ### Run Browser Profiler Source: https://github.com/friuns2/codexui/blob/main/tests/accounts-feedback-observability/browser-runtime-profiling-with-playwright.md Execute the Playwright browser profiler command. Ensure the dev server is running and dependencies are installed. ```bash pnpm run profile:browser ```