WebInfer

CLI Reference

Manage WebInfer servers, providers, and configuration from the command line

What is the WebInfer CLI?

The webinfer CLI is a command-line tool for managing WebInfer servers and configuration. It lets you run local daemon servers, manage providers, configure API keys, and more.

Best for:

  • • Developers who prefer terminal workflows
  • • Scripting and automation
  • • Server deployments
  • • Managing multiple providers
  • • CI/CD pipelines

Key features:

  • • Start daemon or gateway servers
  • • Add/remove provider API keys
  • • Import company provider configs
  • • Manage gateway access tokens
  • • View status and health info

Installation

The CLI facade is currently a repository preview. The public unscoped webinfer package belongs to another project, so no registry install command is available yet.

npm run build:npm-webinfer
node packages/npm-webinfer/dist/cli.js --help

Command Overview

terminal
node packages/npm-webinfer/dist/cli.js <command> [subcommand] [options]Commands:  daemon     Start a local daemon server (desktop use)  gateway    Start a gateway server (multi-user, quotas)  provider   Manage LLM providers and API keys  config     Manage configuration  token      Manage gateway access tokens  model      Manage models  status     Show server status

Daemon Server

webinfer daemon
Start local server

Start a local WebInfer server on your desktop. Works with any browser, not just Chrome.

# Start with defaults (port 54321)node packages/npm-webinfer/dist/cli.js daemon# Custom portnode packages/npm-webinfer/dist/cli.js daemon --port 3000# Enable debug loggingnode packages/npm-webinfer/dist/cli.js daemon --debug# Disable auth (development only!)node packages/npm-webinfer/dist/cli.js daemon --no-auth# With system tray iconnode packages/npm-webinfer/dist/cli.js daemon --tray

See the Node.js Daemon guide for more details.

Provider Management

webinfer provider
Manage LLM providers

Add, remove, and configure providers and their API keys.

# List all providersnode packages/npm-webinfer/dist/cli.js provider list# Add a provider with API keynode packages/npm-webinfer/dist/cli.js provider add openai --key sk-xxxnode packages/npm-webinfer/dist/cli.js provider add anthropic --key sk-ant-xxx --priority 1# Add local providernode packages/npm-webinfer/dist/cli.js provider add ollama --host http://localhost:11434# Test provider connectionnode packages/npm-webinfer/dist/cli.js provider test openai# Show provider detailsnode packages/npm-webinfer/dist/cli.js provider show openai# Enable/disable providersnode packages/npm-webinfer/dist/cli.js provider enable openainode packages/npm-webinfer/dist/cli.js provider disable openai# Remove providernode packages/npm-webinfer/dist/cli.js provider remove openai
Import Provider Configs

Companies can host provider configs for easy distribution to employees or users.

# Import from URLnode packages/npm-webinfer/dist/cli.js provider import https://company.com/webinfer-provider.json --key xxx

Provider import file format:

{
  "$schema": "https://webinfer.com/schemas/provider-config.json",
  "version": "1.0",
  "provider": {
    "id": "webinfer-server",
    "displayName": "Acme Corp Gateway",
    "config": {
      "baseUrl": "https://llm.acme.com/gateway",
      "enabled": true,
      "priority": 1
    }
  },
  "requiresKey": true,
  "keyInstructions": "Contact IT at it@acme.com"
}

Configuration

webinfer config
Manage settings
# Show config pathsnode packages/npm-webinfer/dist/cli.js config path# List all confignode packages/npm-webinfer/dist/cli.js config list# Get/set config valuesnode packages/npm-webinfer/dist/cli.js config get server.portnode packages/npm-webinfer/dist/cli.js config set server.port 8080# Export/import confignode packages/npm-webinfer/dist/cli.js config export -o backup.jsonnode packages/npm-webinfer/dist/cli.js config import backup.json

Gateway Tokens

webinfer token
Manage access tokens

Create and manage access tokens for gateway authentication.

# Initialize gatewaynode packages/npm-webinfer/dist/cli.js gateway init# Create access tokennode packages/npm-webinfer/dist/cli.js token create --name "Production App" \  --quota-limit 10000 \  --quota-period month \  --domains "app.example.com,example.com"# List tokensnode packages/npm-webinfer/dist/cli.js token list# Show token usagenode packages/npm-webinfer/dist/cli.js token usage <token-id># Revoke tokennode packages/npm-webinfer/dist/cli.js token revoke <token-id>

Status

webinfer status
Check server status
# General statusnode packages/npm-webinfer/dist/cli.js status# Daemon statusnode packages/npm-webinfer/dist/cli.js daemon status# Gateway statusnode packages/npm-webinfer/dist/cli.js gateway status

Environment Variables

Provider API keys can be set via environment variables (takes precedence over config files).

OPENAI_API_KEYOpenAI API key
ANTHROPIC_API_KEYAnthropic API key
GOOGLE_AI_API_KEYGoogle AI API key
GROQ_API_KEYGroq API key

Config Directory

WebInfer stores configuration in ~/.webinfer/

~/.webinfer/
├── config.json              # Global settings
├── providers/
│   ├── openai.json          # Provider configs (chmod 600)
│   ├── anthropic.json
│   └── ...
├── gateway/
│   ├── secret.key           # Gateway signing key (chmod 600)
│   └── tokens/
│       └── {tid}.json       # Issued tokens
└── logs/
    └── webinfer.log

Provider config files contain API keys and are stored with restricted permissions (chmod 600).

Who Should Use the CLI?

Developers

Run local servers for development and testing. Quickly add or swap providers without leaving your terminal.

DevOps / IT

Script deployments, automate config distribution, and manage gateway tokens for your team.

Power Users

Manage multiple providers, switch between configs, and have full control over your WebInfer setup.