Studio

Torque Studio is a web-based interface for searching, managing collections, and configuring your Torque server. It ships embedded in the Torque binary and runs on the HTTP port.

Accessing Studio

Studio is available at the HTTP API address as soon as the server starts:

torque-server --api-key YOUR_API_KEY

Open http://localhost:8108 in your browser. Enter the API key to log in. The API key is stored in your browser’s local storage so you only need to enter it once.

Dashboard

The dashboard shows an overview of your Torque server: collections, document counts, and server health.

Search Editor

The search editor is the main workspace for building and testing queries:

  • Monaco editor - JSON-mode editor for composing search parameters
  • Collection selector - choose which collection to search
  • Results panel - view search results with highlights, facet counts, and timing

Schema Browser

Browse the schema of each collection:

  • Field names, types, and options (facet, sort, index, optional)
  • Collection metadata (document count, creation time)
  • Default sorting field and language settings

API Key Management

Create and manage API keys from Studio:

  • Create keys with specific actions and collection scopes
  • View existing keys (prefix only - full key shown once on creation)
  • Set expiration and auto-delete
  • Delete keys

Data Import

Import documents directly from Studio using JSONL format. Paste or upload your document data and import it into any collection.

Examples

Pre-built example search queries you can run to explore Torque’s search capabilities, including text search, filtering, faceting, sorting, and grouping.

Reference

A built-in reference of search parameters and filter syntax, accessible directly from Studio without leaving the application.

Documentation

Links to the full Torque documentation, also accessible from within Studio.

Settings

SettingDefaultDescription
ThemeDarkDark or light mode
Server URLhttp://localhost:8108Torque server address

Settings are stored in the browser and persist across sessions.

Search Assistant

Studio's Search Assistant writes and fixes searches for the collection you have open, on a model you choose. It is off until you configure a provider, and Studio hides it until then.

SettingEnvironment variableMeaning
ai_providerTORQUE_AI_PROVIDERanthropic for the Claude API, or openai for any OpenAI-compatible endpoint. Unset turns the assistant off.
ai_api_keyTORQUE_AI_API_KEYThe provider's key. It stays on the server and is never sent to the browser.
ai_modelTORQUE_AI_MODELDefault claude-opus-5-5 on anthropic; required on openai.
ai_base_urlTORQUE_AI_BASE_URLThe endpoint, for a gateway or a model on your own machine.
ai_max_tokensTORQUE_AI_MAX_TOKENSOutput tokens per answer.
ai_effortTORQUE_AI_EFFORTClaude API effort, low to max. Defaults to the model's own.

Because openai accepts any OpenAI-compatible endpoint, the assistant can run against a model on your own hardware through Ollama, LM Studio or vLLM, in which case nothing leaves your network. The assistant is given the collection's schema and never its documents.

Custom Studio Build

To serve Studio from a directory instead of the embedded files, start Torque with --studio-dir. To run the server without Studio entirely (API-only deployments), pass --no-studio:

torque-server --api-key YOUR_API_KEY --studio-dir ./studio-dist
torque-server --api-key YOUR_API_KEY --no-studio