forked from neteroster/CodexCont
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodexcont
More file actions
executable file
·24 lines (22 loc) · 917 Bytes
/
Copy pathcodexcont
File metadata and controls
executable file
·24 lines (22 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# One-click entrypoint for CodexCont's installer/service-manager CLI.
#
# ./codexcont interactive menu
# ./codexcont install guided setup (deps + config.toml), asks before doing anything
# ./codexcont start start the proxy in the background
# ./codexcont logs -f follow the log
# ./codexcont stop stop it
#
# Prefers `uv` (auto-syncs dependencies on every run) and falls back to a
# plain `python3 -m middleware.cli` (Method B in INSTALL-GUIDE-AGENT/AGENT.md)
# when uv isn't installed. Equivalent one-off/no-clone alternative:
# uvx --from <path-or-git-url-to-this-repo> codexcont
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DIR"
if command -v uv >/dev/null 2>&1; then
exec uv run python -m middleware.cli "$@"
fi
PY="python3"
command -v python3 >/dev/null 2>&1 || PY="python"
exec "$PY" -m middleware.cli "$@"