コンテンツにスキップ

Local Connector

Vela Local Connector is a CLI that connects an OpenAI-compatible endpoint on a customer device or internal network to Vela without a public inbound endpoint. Vela does not connect directly to the local runtime; the connector retrieves jobs through outbound polling.

Terminal window
npm install -g @vel4ai/local-connector
vela --help

For pre-publish repo development, use:

Terminal window
pnpm --filter @vel4ai/local-connector mock:local-llm
pnpm --filter @vel4ai/local-connector build
Terminal window
vela login --email [email protected] --otp 000000
vela add --local-base-url http://127.0.0.1:1234/v1 --model local/mock=mock-local-llm --label "Laptop mock LLM"
vela models
vela start
vela start --detach
vela status
vela doctor

vela start runs in the foreground. vela start --detach starts the same connector in a background child process, prints the PID, and returns to the shell. --background is also accepted. Detached mode is not an OS service manager; use vela status to confirm that Vela sees the connector online.

The local endpoint must expose these OpenAI-compatible APIs.

endpointPurpose
GET /modelsCheck available local model IDs
POST /chat/completionsNon-streaming and streaming chat completions

--model local/mock=mock-local-llm maps the Vela model ID local/mock to the local endpoint model mock-local-llm. Pass --model multiple times when using multiple models.

The CLI stores config in $XDG_CONFIG_HOME/vela/connector.json, or ~/.config/vela/connector.json when XDG_CONFIG_HOME is not set. Use VELA_CONNECTOR_CONFIG=/path/to/connector.json to isolate test config.

OperationTimeout
Local /models health check3s
Non-streaming response120s
Streaming first response60s
Streaming idle gap30s
Streaming total runtime5m