Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/letta-openwebui. A Letta fork of OpenWebUI
Something went wrong. Try again.
597 B · 23 lines
Shell
123456789101112131415161718192021222324#!/usr/bin/env bashset -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"TOKEN_FILE="$ROOT_DIR/.secrets/app-server-token"LISTEN_URL="${LETTA_LISTEN_URL:-ws://0.0.0.0:4500}"
if ! command -v letta >/dev/null 2>&1; then echo "Letta CLI is not installed. See https://docs.letta.com/self-hosting" >&2 exit 1fi
if [[ ! -s "$TOKEN_FILE" ]]; then echo "Missing $TOKEN_FILE. Run ./scripts/setup.sh first." >&2 exit 1fi
exec letta server \ --backend local \ --listen "$LISTEN_URL" \ --openai-api \ --ws-auth capability-token \ --ws-token-file "$TOKEN_FILE"