Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
EXCLUDED_FOLDERS=(
"assets"
"backups"
"bazel-*"
"bower_components"
"buck-out"
"build"
"contracts"
#!/usr/bin/env bash
printDumpDebug=0
debug() {
case "$printDumpDebug" in
1|true|TRUE|yes|YES|on|ON) echo "$@" >&2 ;;
esac
}

What the source says

1. Image embeddings are precomputed and stored

Background Smart Search jobs encode each asset once and sav

#!/usr/bin/env bash
set -euo pipefail
BASE_URL="${CODEX_LOCAL_BASE_URL:-http://localhost:8000/v1}"
DEFAULT_MODEL="${CODEX_LOCAL_MODEL:-Qwen3.6-35B-A3B-8bit}"
export OPENAI_API_KEY="${OPENAI_API_KEY:-MY_API_KEY}"
catalog_file="$(mktemp /tmp/local-codex-model-catalog.XXXXXX.json)"
cleanup() {
rm -f "$catalog_file"
#!/usr/bin/env bash
set -euo pipefail
BASE_URL="${CODEX_LOCAL_BASE_URL:-http://localhost:8000/v1}"
DEFAULT_MODEL="${CODEX_LOCAL_MODEL:-Qwen3.6-35B-A3B-8bit}"
LOCAL_HOME="${CODEX_LOCAL_HOME:-/tmp/local-codex-gui-home}"
USER_DATA_DIR="${CODEX_LOCAL_GUI_USER_DATA:-/tmp/local-codex-gui-user-data}"
CATALOG_FILE="$LOCAL_HOME/model-catalog.json"
CONFIG_FILE="$LOCAL_HOME/config.toml"
APP_BIN="/Applications/Codex.app/Contents/MacOS/Codex"