Skip to content

AI agents and integrations

VibeForma is designed to be called by another local program: an editor, a script, a coding agent or FormaMind. The integration stays on this computer, uses no cloud account and needs no network listener unless you turn on the local API.

There are three surfaces, in the order a harness should try them:

Surface Needs a port Needs the token Best for
Named pipe CLI No No Anything that can start a process
Local HTTP API Yes, loopback Yes HTTP clients and OpenAI-compatible code
MCP server mcp.cmd Through the local HTTP API Yes (reads config.json) MCP clients: Claude Code, Cursor, Forma Mind
Files on disk No No Reading finished transcripts

The service publishes %LOCALAPPDATA%\VibeForma\location.json so a harness never has to guess the install folder. The file is written atomically and contains no secret.

{
"schema": 2,
"app": "vibeforma",
"version": "0.5.18",
"launcher": "C:\\Users\\you\\AppData\\Local\\VibeForma\\run.cmd",
"python": "C:\\Users\\you\\AppData\\Local\\VibeForma\\.venv\\Scripts\\python.exe",
"entry": "C:\\Users\\you\\AppData\\Local\\VibeForma\\main.py",
"install_dir": "C:\\Users\\you\\AppData\\Local\\VibeForma",
"config": "C:\\Users\\you\\AppData\\Local\\VibeForma\\config.json",
"app_dir": "C:\\Users\\you\\AppData\\Local\\VibeForma",
"pid": 12345,
"updated": 1795312800,
"file_mode": true,
"formats": ["txt", "json", "srt", "vtt"],
"languages": ["en", "ru"],
"max_file_mb": 4096,
"max_file_s": 21600,
"max_sync_s": 900,
"pipe": "\\\\.\\pipe\\VibeForma-you",
"port": 8787,
"api": "on",
"base_url": "http://127.0.0.1:8787/v1",
"active_engine": "whisper",
"active_model": "large-v3-turbo",
"engines": [
{"id": "whisper", "label": "Whisper", "default_model": "large-v3-turbo"},
{"id": "gigaam", "label": "GigaAM (RU/EN)", "default_model": "v4_rnnt"}
]
}
Field Meaning
schema File schema; 2 adds the file-mode fields
version Product version
launcher, python, entry The three ways to start the app
config, app_dir, install_dir Paths a harness may need
pid, updated The writing process and a Unix timestamp
file_mode true once the named pipe is listening; false while the service is still loading
formats, languages What the running build accepts
max_file_mb, max_file_s, max_sync_s The limits in force
pipe Present only when the pipe is listening
port, api Present when the HTTP API is on; api is on, off or error
base_url One entry point, http://127.0.0.1:<port>/v1, present with api: "on"
active_engine, active_model The engine and model every request works with — a reference, never a choice
engines[] The engines that can answer now: id, label, model, models[], default_model, languages, formats, word_timestamps, prompt, temperature, clip_timestamps, jobs. models[] states what is installed, not what can be picked per request

The example shortens the engines[] entries; a harness reads them as a reference of the current configuration. A request never picks an engine or a model: both come from config.json, and a request that names either is refused by name.

A harness that finds no location file can call GET /capabilities instead — it repeats the same facts over HTTP, including base_url, active_engine, active_model and engines[].

The CLI talks to the running service over \\.\pipe\VibeForma-<user>, created with an owner-only DACL. No port, no token and no network are involved. This is the recommended surface for an agent that can start a process.

Terminal window
.\run.cmd --status
.\run.cmd --transcribe "D:\audio\interview.m4a" --format json --json
.\run.cmd --transcribe-folder "D:\audio\batch" --recursive --json
.\run.cmd --cancel-batch
Flag Answer
--transcribe Progress on stderr, the result path or a JSON object on stdout
--prompt <text> Initial prompt for the job, up to 1024 characters; the configured preset is used when omitted
--words Ask for word timestamps
--clip <ranges> Transcribe only the named ranges, for example 12.5,30
--transcribe-folder A JSON summary of the batch on stdout
--cancel-batch [<id>] Stops every unfinished batch, or the named one
--status The service state as JSON

Exit codes: 0 success, 1 a service or job error, 2 bad arguments, 3 cancelled, 4 nothing to transcribe in the folder. While the model is loading the call answers the model is loading and exits 1; retry later.

The CLI runs files on the active engine: --words and --clip are honoured on both engines, --prompt stays Whisper’s, and a GigaAM job reports the prompt as unavailable in warnings[] instead of inventing it.

With the local API on, POST /v1/audio/transcriptions accepts multipart form data with the OpenAI field names:

Field Meaning
file The audio or video file; required
model Refused with 400 model_not_selectable: the model is a setting
engine Refused with 400 engine_not_selectable: the engine is a setting
language Recognition language, for example ru
response_format json, text, srt, vtt or verbose_json
prompt Initial prompt, up to 1024 characters
temperature Sampling temperature
word_timestamps Ask for word timings; timestamp_granularities[]=word is accepted as the OpenAI spelling
clip_timestamps Transcribe only the named ranges, for example 12.5,30

Authentication is Authorization: Bearer <token> or X-VibeForma-Token: <token>. The endpoint answers with the engine and model from config.json, never starts a download, and names an unavailable active engine with 409 engine_unavailable instead of switching to Whisper. The retired per-engine channels /whisper/v1 and /gigaam/v1 answer 410 api_retired pointing at /v1.

Whisper accepts all five response formats; GigaAM accepts json and text, ignores prompt and temperature, and refuses srt, vtt, verbose_json, word_timestamps and clip_timestamps with 400 engine_option_unsupported.

The endpoint answers synchronously while the file is at or below file_max_sync_s (900 s by default). A longer file returns 413 with "job_endpoint": "/jobs".

verbose_json follows the OpenAI shape and adds the engine readings: segments[] carries avg_logprob, no_speech_prob, compression_ratio and temperature, and a top-level words[] carries word, start, end and probability.

Method and path What it does
POST /jobs Queues a file and returns its id and Location header; accepts prompt, word_timestamps and clip_timestamps; a model or engine field is refused by name
GET /jobs/<id> State, progress, duration, segment count, engine, model, warnings, outputs and the applied prompt, word_timestamps and clip_timestamps
GET /jobs/<id>/result?format=txt The finished transcript in one of the four formats
DELETE /jobs/<id> Cancels the job
GET /capabilities Formats, models, limits, pipe, launcher, base_url, active_engine, active_model, engines[], and the declared prompt and clip_timestamps
GET /health Live state plus file_mode, jobs_running and jobs_queued

A job runs on the active engine and its model. On GigaAM a file is cut into 30-second windows, word timestamps and clip ranges are honoured, and a job that asks for a prompt names prompt_unavailable in warnings[] and runs without it. A job pauses when a dictation starts and resumes when the service is idle. The HTTP surface answers 409 while a dictation is in progress, so a caller should retry rather than compete with the microphone. A bad range or a prompt longer than 1024 characters is refused with 400. Details and status codes are on Local API.

An MCP-capable client starts %LOCALAPPDATA%\VibeForma\mcp.cmd as a stdio server:

{
"mcpServers": {
"vibeforma": {
"command": "C:\\Users\\<you>\\AppData\\Local\\VibeForma\\mcp.cmd"
}
}
}

The server reads location.json for the actual port and config.json for the token, so nothing has to be hardcoded. It exposes three tools:

Tool What it does
vibeforma_capabilities The same facts as GET /capabilities
vibeforma_transcribe_file Queues a file through /jobs and returns the text when the job finishes; accepts prompt, word_timestamps and clip_timestamps
vibeforma_job_status The state, progress and applied contract of a queued job

The local API must be on: without it the server answers with a named refusal. The service itself stays loopback-only — the MCP server adds no listener and never sends the token anywhere. Settings → AI and automation shows the endpoint, the launcher and a ready connection block with copy buttons.

  1. Read location.json.
  2. If file_mode is true and pipe is present, run the CLI with --json and parse stdout.
  3. Otherwise, if api is on, read http_token from config.json and call base_url with that token.
  4. If file_mode is false, wait and retry — the service is still loading its model.
  5. Keep files on local disks; network paths are refused.
Terminal window
$loc = Get-Content "$env:LOCALAPPDATA\VibeForma\location.json" | ConvertFrom-Json
if ($loc.file_mode -and $loc.pipe) {
& $loc.launcher --transcribe "D:\audio\note.wav" --format txt --json
} elseif ($loc.api -eq "on") {
$cfg = Get-Content $loc.config | ConvertFrom-Json
Invoke-RestMethod -Uri ($loc.base_url + "/audio/transcriptions") `
-Method Post -Headers @{ "X-VibeForma-Token" = $cfg.http_token } `
-Form @{ file = Get-Item "D:\audio\note.wav"; response_format = "json" }
}
  • The pipe is per user and owner-only; another account cannot connect.
  • The HTTP API binds 127.0.0.1 only and requires the token on every request.
  • location.json carries no secret; the token stays in config.json.
  • File jobs accept local fixed and removable disks, not UNC shares.
  • Nothing is uploaded: recognition, decoding and transcript writing are local.