Installation
Download Binary
Section titled “Download Binary”Pre-built binaries are available on the Releases page.
# macOS (Apple Silicon)curl -Lo gosok https://github.com/cookieshake/gosok-terminal/releases/latest/download/gosok-darwin-arm64chmod +x gosokxattr -d com.apple.quarantine gosok # remove macOS Gatekeeper quarantine flag./gosok
# macOS (Intel)curl -Lo gosok https://github.com/cookieshake/gosok-terminal/releases/latest/download/gosok-darwin-amd64chmod +x gosokxattr -d com.apple.quarantine gosok # remove macOS Gatekeeper quarantine flag
# Linux (x86_64)curl -Lo gosok https://github.com/cookieshake/gosok-terminal/releases/latest/download/gosok-linux-amd64chmod +x gosok
# Linux (ARM64)curl -Lo gosok https://github.com/cookieshake/gosok-terminal/releases/latest/download/gosok-linux-arm64chmod +x gosokThe server starts on port 18435 by default. Open http://localhost:18435 in your browser.
Docker
Section titled “Docker”docker build -t gosok-terminal .docker run -p 18435:18435 -v gosok-data:/data gosok-terminalBuild from Source
Section titled “Build from Source”Prerequisites: Go 1.25+, Node.js 22+
If you use Flox, both are managed automatically with flox activate.
git clone https://github.com/cookieshake/gosok-terminal.gitcd gosok-terminalmake build./bin/gosokThis produces a single binary at bin/gosok with the frontend embedded.
Environment Variables
Section titled “Environment Variables”| Variable | Default | Description |
|---|---|---|
GOSOK_HOST | 127.0.0.1 | Bind address (0.0.0.0 to expose externally) |
GOSOK_PORT | 18435 | Server port |
GOSOK_DB_PATH | ~/.gosok/gosok.db | SQLite database path |
GOSOK_API_URL | http://localhost:18435 | API URL for CLI commands |