VELADocsvelab.si ↗

Quickstart

Vela runs as a bot in your team’s group chats and as an agent in your terminal. This page goes from a fresh install to a bot answering in a Lark group, then covers terminal use, manual provider configuration and running from source.

Vela needs a model: Anthropic, OpenAI (an API key or your ChatGPT plan), OpenRouter, DeepSeek, or any provider you add under providers in ~/.vela/config.json. Without a key you can try it offline with the built-in demo model. It runs on Node.js 22.18 or newer and on Bun 1.4 or newer.

1. Install

Install the vela command globally:

npm install -g @glows777/vela
# or
bun add -g @glows777/vela

To run the latest source instead, see Run from source.

2. Configure a model

Change to the folder you want Vela to work in and start it:

cd /path/to/project
vela

The first run opens the setup wizard in the terminal. It asks, in order:

  1. Choose a provider. Pick one of the built-in choices:

    Choose a provider
      Anthropic API key
      OpenAI API key
      Sign in with ChatGPT
      OpenRouter
      DeepSeek
      Custom provider

    DeepSeek uses the built-in Responses provider and defaults to deepseek/deepseek-flash. For another endpoint, choose Custom provider, enter a provider name and base URL, then choose OpenAI Chat Completions, OpenAI Responses or Anthropic Messages. Optional custom headers use a JSON object with string values (for example, {"x-region":"us"}); entry is masked. Press Enter on an empty input to keep existing headers (none for a new provider), or enter {} to clear them. Escape cancels setup without saving.

  2. Enter a credential. The wizard asks for an API key, opens a browser for a ChatGPT or OpenRouter sign-in, or offers to keep a credential it already finds in auth.json.

  3. Select Model. A searchable list shows the models for that provider. Type to filter, use the arrow keys and press Enter. For a custom provider, enter the model ID instead. Enter its context window as a positive token count, or press Enter on an empty input to keep the existing value (the default for a new model). Image input and reasoning support each offer Keep, Yes and No. Escape cancels setup without saving, including in optional inputs.

  4. Verify. The wizard sends one small request to the provider:

    Verification sends a minimal request and may incur a small charge
      Verify
      Cancel

    If verification fails, the wizard shows the provider’s error and offers Retry verification or Cancel and rerun setup.

  5. Thinking level. Choose off, minimal, low, medium, high, xhigh or max, limited to what the model supports.

  6. Connect Lark? Choose Not now to keep the wizard to the model, then follow step 3 below; Yes, connect Lark runs the same Lark setup described there.

  7. Save configuration. The screen lists the model, thinking level and the auth.json and config.json locations. Save configuration writes the credential to auth.json and saves the model, thinking level, and any custom provider preset to ~/.vela/config.json.

After saving, Vela opens the terminal UI. Press Ctrl+D on an empty editor to exit before running the next command. Run vela setup later to change the model or sign-in. It first shows the current model, thinking level and whether a credential is saved in auth.json, and offers Keep current configuration or Change configuration. For environment variables or a hand-written config.json, see Manual configuration.

3. Connect a Lark group

Create and publish a Lark custom app first. The manual Lark reference lists every step: enable the bot, choose long connection, subscribe to im.message.receive_v1 and card.action.trigger, grant the permissions below it, and add the bot to the group. The app console is https://open.feishu.cn/app.

Then run, in an interactive terminal:

vela setup lark

The wizard asks, in order:

  1. What the app needs. A checklist to confirm before it continues:

    Create and publish a Lark app, enable its bot, select long connection, subscribe to im.message.receive_v1 and card.action.trigger, grant permissions, and add the bot to the group. Card callback and scopes are not checked by setup. Console: https://open.feishu.cn/app
      Continue

    Setup checks the app credentials and the long connection only; card callbacks and scopes remain manual.

  2. Credentials. It asks for the Lark App ID and App Secret; the secret input is masked. When credentials are already saved in config.json, it first offers Keep saved credentials or Replace credentials.

  3. Verification. It connects to Lark with those credentials. On failure it shows the reason and Check permissions at https://open.feishu.cn/app, then offers Retry setup or Cancel.

  4. Mention the bot. After a successful connection:

    Credentials verified. Mention the bot in the group to enable (Ctrl+C twice to cancel).

    Mention the bot in the group you want it in. Ctrl+C twice cancels setup.

  5. Enable the group. The wizard shows the chat ID and, when available, the group name before asking for confirmation:

    Enable <group> (<chat id>)? Every member of an enabled group has full access to Vela tools.
      Enable group
      Cancel

    If Vela cannot retrieve the group name, the prompt starts with Enable <chat id>? instead. Check the ID before enabling the group.

    Enabling a group trusts everyone in it with Vela’s tools: by default (local), file and shell tools run directly on this machine with no local OS sandbox (unless you bind the group to a configured Docker environment, while extensions and daemon operations still run on the host), and there is no per-member boundary. Read Security before enabling a group.

  6. Save. It writes top-level lark with the app ID, secret and chat ID to ~/.vela/config.json (mode 0600), sends a confirmation message to the group, and prints a summary.

To add another group later, run vela setup lark again and mention the bot there.

4. Run the daemon

Manage the resident background daemon:

vela daemon start

The CLI uses vela daemon (start, status, stop, or foreground run) to own <VELA_DIR>/vela.db, host built-in Lark and webhook adapters, and serve local clients on <VELA_DIR>/vela.sock (standalone vela serve was retired in v0.9). To run the daemon under a service manager, follow Deploy vela daemon.

5. Use Vela in a terminal

Running vela opens the interactive UI in your working folder. The screen shows the conversation, an editor, and a footer with the folder, session id, token usage, context percentage, model and thinking level. Type a task and press Enter:

Explain how this repository is structured and how to run its tests.

Vela shows each tool call (file reads, searches, edits, shell commands) as it runs. Type / to see commands, /hotkeys for keyboard shortcuts, and press Ctrl+D on an empty editor to exit. See CLI for every flag, key and command.

To run one prompt and print only the answer:

vela -p "Summarize README.md in three bullet points"
git diff | vela -p "Review this change"

Manual configuration

Four providers are built in. Give Vela a key for one of them, and it picks that provider’s default model:

Provider Variable Default model
anthropic ANTHROPIC_API_KEY anthropic/claude-opus-4-8
openai OPENAI_API_KEY, optional OPENAI_API_BASE_URL for a proxy openai/gpt-5.5
openrouter OPENROUTER_API_KEY openrouter/moonshotai/kimi-k2.6
deepseek DEEPSEEK_API_KEY deepseek/deepseek-flash
export ANTHROPIC_API_KEY=sk-ant-...
vela

You can also run /login inside Vela: it stores an API key, signs in with your ChatGPT Plus/Pro plan (Sign in with ChatGPT, for use on your own machine), or signs in to OpenRouter. See Credentials and /login.

To use another model, pass --model provider/id, pick one with /model, or save it as model in ~/.vela/config.json:

{ "model": "anthropic/claude-sonnet-4-6" }

Other providers (Ollama, vLLM, a company gateway, an OpenAI-compatible service) go under providers in ~/.vela/config.json. See Models.

The installed vela command does not read .env files. When you run the source with Bun, Bun loads .env from the current folder, so cp .env.example .env works for runs started in the clone.

Run from source

Clone the repository and install its dependencies:

git clone https://github.com/glows777/Vela
cd Vela
bun install

Start it with Bun from the folder you want to work in:

cd /path/to/project
bun /path/to/Vela/packages/vela/src/cli/main.ts

To get a vela command from the clone instead, build the package and link it (this runs the compiled dist/cli/main.js with Node):

cd /path/to/Vela
bun run build
npm link

bun run start in the clone starts Vela with the clone itself as the working folder.

Try it offline

VELA_MODEL=mock replaces the model with a keyword-driven demo model. It needs no key and no network, calls real tools for some requests, and simulates prompt caching so /usage and /context have something to show:

VELA_MODEL=mock vela
VELA_MODEL=mock bun packages/vela/src/cli/main.ts     # from a clone

Try hello, list files, read package.json, test bash, then /status, /usage and /context. /cache off turns the cache simulation off so you can compare costs.

Where things are stored

Everything lives under ~/.vela (set VELA_DIR to use another directory): config.json, vela.db (sessions, approvals, runs, usage records, and trusted_paths), user extensions/, skills/ and prompts/ and an optional AGENTS.md at the top, and one data directory per project folder under projects/, holding its spilled session tool outputs and project memory. The full layout is in Settings.

Vela never writes into the project folder itself. A project can add its own .vela/config.json, .vela/extensions/, prompt templates and skills (.vela/skills/, .agents/skills/, .skills/), which load only after you trust the project. AGENTS.md or CLAUDE.md in the project is put into the system prompt either way, like pi. See Project trust.

Continue later

Each launch starts a new session, and sessions are saved automatically. Continue the most recent session for this folder with:

vela -c

vela -r or /resume picks from saved sessions. See Sessions.

Next steps

  • CLI: flags, run modes, keys and slash commands.
  • Channels: running Vela in a group, topics, schedules, costs and permissions.
  • Channels reference: gateway lifecycle, writing a channel and external events.
  • Models: providers, thinking levels.
  • Settings: config.json, project trust, skills.
  • Tools: the built-in file, search and shell tools.
  • Built-in extensions: memory, background, todo, web, Lark.
  • Extensions: add your own tools, commands, providers and channels.
  • SDK: embed Vela in your own program.
  • Security: permissions and what Vela does not protect against.

Uninstall

npm uninstall -g @glows777/vela

This does not remove ~/.vela. Delete it yourself to remove settings, sessions and memory.