Thox CLI Command Reference

Complete reference guide for all Thox.ai command-line interface commands.

Back to Articles

The Thox CLI (thox) is your primary interface for managing your Thox.ai device. Access it via SSH or the built-in terminal in the web interface. All commands support --help for detailed usage information.

Quick Reference

CommandDescription
thox startStart the Thox.ai inference server and load models into memory.
thox stopStop the running inference server and unload models from memory.
thox statusDisplay current server status, loaded models, and resource usage.
thox modelsList, download, and manage AI models.
thox runRun a single inference query directly from the command line.
thox configView and modify Thox.ai configuration settings.
thox logsView and manage server logs.
thox updateCheck for and install firmware and software updates.

Detailed Command Reference

thox start

Start the Thox.ai inference server and load models into memory.

Syntax

thox start [options]

Options

--model, -m <name>Specify model to load on startup
--port, -p <port>Port to run the server on (default: 8080)
--gpu-layers <n>Number of layers to offload to GPU
--context-size <n>Context window size (default: 4096)
--background, -bRun server in background

Examples

thox start
thox start -m thox-coder-7b
thox start --port 3000 --context-size 8192

thox stop

Stop the running inference server and unload models from memory.

Syntax

thox stop [options]

Options

--force, -fForce stop without graceful shutdown

Examples

thox stop
thox stop --force

thox status

Display current server status, loaded models, and resource usage.

Syntax

thox status [options]

Options

--jsonOutput in JSON format
--verbose, -vShow detailed information

Examples

thox status
thox status --json

thox models

List, download, and manage AI models.

Syntax

thox models <subcommand> [options]

Options

listList installed models
pull <name>Download a model from the registry
remove <name>Remove an installed model
info <name>Show model details and requirements

Examples

thox models list
thox models pull thox-coder-14b
thox models info thox-coder-7b

thox run

Run a single inference query directly from the command line.

Syntax

thox run [options] <prompt>

Options

--model, -m <name>Model to use for inference
--temperature, -t <n>Sampling temperature (0.0-2.0)
--max-tokens <n>Maximum tokens to generate
--stream, -sStream output tokens as generated

Examples

thox run "Write a hello world in Python"
thox run -m thox-coder-32b --stream "Explain this code"

thox config

View and modify Thox.ai configuration settings.

Syntax

thox config <subcommand> [options]

Options

get <key>Get a configuration value
set <key> <value>Set a configuration value
listList all configuration values
resetReset to default configuration

Examples

thox config list
thox config get api.port
thox config set api.port 3000

thox logs

View and manage server logs.

Syntax

thox logs [options]

Options

--follow, -fFollow log output in real-time
--lines, -n <n>Number of lines to show (default: 100)
--level <level>Filter by log level (debug, info, warn, error)

Examples

thox logs -f
thox logs --level error -n 50

thox update

Check for and install firmware and software updates.

Syntax

thox update [options]

Options

--checkCheck for updates without installing
--forceForce update even if up to date
--channel <name>Update channel (stable, beta)

Examples

thox update --check
thox update

Environment Variables

THOX_API_KEYAPI key for authenticated requests
THOX_HOSTServer hostname (default: localhost)
THOX_PORTServer port (default: 8080)
THOX_CONFIG_DIRConfiguration directory path

Related Articles

Need more help?

If you have questions about specific commands or use cases, our support team is here to help.