Initial commit: Codex Launcher — Any AI Provider
Multi-provider integration for OpenAI Codex CLI/Desktop. - Translation proxy: Responses API ↔ Chat Completions / Anthropic Messages - GTK launcher with endpoint management, provider presets, Desktop/CLI launch - Codex Default mode (built-in OAuth, zero config) - Browser UA injection for Cloudflare-protected providers - Streaming SSE, tool calls, reasoning content support - Profile backup/import, model auto-fetch, bulk import - Zero pip dependencies (pure Python stdlib + GTK)
This commit is contained in:
29
install.sh
Executable file
29
install.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
BIN_DIR="$HOME/.local/bin"
|
||||
APP_DIR="$HOME/.local/share/applications"
|
||||
|
||||
mkdir -p "$BIN_DIR" "$APP_DIR"
|
||||
|
||||
cp "$SCRIPT_DIR/src/translate-proxy.py" "$BIN_DIR/"
|
||||
cp "$SCRIPT_DIR/src/codex-launcher-gui" "$BIN_DIR/"
|
||||
cp "$SCRIPT_DIR/src/cleanup-codex-stale.sh" "$BIN_DIR/"
|
||||
|
||||
chmod +x "$BIN_DIR/translate-proxy.py"
|
||||
chmod +x "$BIN_DIR/codex-launcher-gui"
|
||||
chmod +x "$BIN_DIR/cleanup-codex-stale.sh"
|
||||
|
||||
USERNAME=$(whoami)
|
||||
sed "s/YOUR_USERNAME/$USERNAME/g" "$SCRIPT_DIR/src/codex-launcher.desktop.template" > "$APP_DIR/codex-launcher.desktop"
|
||||
|
||||
update-desktop-database "$APP_DIR" 2>/dev/null || true
|
||||
|
||||
echo "Installed."
|
||||
echo " translate-proxy.py -> $BIN_DIR/translate-proxy.py"
|
||||
echo " codex-launcher-gui -> $BIN_DIR/codex-launcher-gui"
|
||||
echo " cleanup-codex-stale -> $BIN_DIR/cleanup-codex-stale.sh"
|
||||
echo " desktop entry -> $APP_DIR/codex-launcher.desktop"
|
||||
echo ""
|
||||
echo "Open 'Codex Launcher' from your app grid, or run: codex-launcher-gui"
|
||||
Reference in New Issue
Block a user