VELADocsvelab.si ↗

Security

Vela is a local agent. By default (environment: "local"), its tools read and write files and run shell commands on the host with the permissions of the user who started it, and there is no local OS sandbox. You can bind channel or SDK sessions to an isolated Docker execution environment (environments in config.json; see Channels and Settings) so session file, search, and bash tools execute inside that container, while extensions, host MCP servers, and daemon operations still run on the host. Treat commands and code the model produces as untrusted, and limit what the Vela process can reach if a generated action is wrong or hostile.

This page describes what Vela protects and what it does not. To report a vulnerability, see the security policy.

Trust model

Who Trusted? What they can do
The user running vela Yes Everything the operating-system user can do, through the model’s tool calls
Extensions Yes, fully Run arbitrary code in the Vela process
Project config (.vela/config.json, .vela/extensions/, project skills and prompt templates, .vela/SYSTEM.md, .vela/APPEND_SYSTEM.md) Only after you trust the project Same as extensions once loaded
AGENTS.md / CLAUDE.md in the working folder and its parents Always (--no-context-files turns them off), like pi Instructions in the system prompt
Members of an enabled Lark chat Yes, all members Full access: bash, files, memory and extension tools
Model output, tool results, file contents, web pages No Can steer the model (prompt injection)

The trust boundary is the whole Vela instance, not an individual chat or session. Every enabled chat and accepted webhook input reaches the same Vela daemon, extensions, and shared memory store. Unless a chat’s sessions are bound to an isolated Docker execution environment (environments in config.json), members of chat A can also use local file and shell tools to read chat B’s sessions, workspaces, and ~/.vela/auth.json on the host; even with Docker tool isolation, extensions, global memory notes, and daemon host operations remain shared on the host. Separate transcripts, memory scopes and working directories organize data; they do not provide multi-tenant host isolation on their own.

Lark enforces a chat allowlist before invoking the model. Enabling a chat trusts every current and future member with this instance-wide access. Local token checks and webhook authentication control admission, not what admitted input can make the agent access. Use separate OS users, containers or virtual machines when callers must not share trust.

Tools run as you (unless bound to a Docker environment)

In default local sessions, the built-in tools (read, write, edit, ls, grep, find, bash) run in the Vela process with your user’s permissions. When a session’s execution location uses a configured Docker environment (environments in config.json), those session tools execute inside the container instead, while extensions and daemon host operations still run on the host. See Tools and Channels.

  • The working directory is where relative paths resolve and where bash starts. It is not a jail: file tools accept absolute paths and .., and bash can reach anything your user can.
  • Vela does not filter bash commands: a command the model writes runs unless a user extension blocks the call. A pattern-based confirmation extension can catch mistakes, but is not a security control and is easy to get around.
  • Vela does not block risky tool calls by default unless you load a user extension with a tool_call hook (see Block dangerous calls).

Anyone in an enabled chat using the default local environment can make Vela run bash on the host. That shell runs as the Vela user with Vela’s environment and working folder, so it can read ~/.vela/auth.json (provider keys and OAuth tokens) and ~/.vela/config.json: group members can read Vela’s keys unless that group is bound to an isolated Docker environment (or the daemon itself runs in a dedicated container/VM). Run Vela as a dedicated user with its own home, or bind untrusted workspaces/groups to a Docker environment or dedicated VM holding only the files, credentials and network access the bot needs; the vela daemon deploy recipe sets up a dedicated host user.

Extensions are trusted code

An extension is a function that runs inside the Vela process. It can read and write any file, start processes, open network connections, see every prompt, message and tool call, change tool input and output, and register tools that any session can call. Vela does not sandbox extensions and does not try to; this is by design, as in pi.

A session’s tool selection does not restrict extension code. It only decides which registered tools the session’s model can call.

Review an extension before you load it, and load only extensions from sources you trust. The CLI loads extensions from ~/.vela/extensions/, from settings, from -e, and from the project’s .vela/extensions/ once the project is trusted. See Extensions.

Project trust

A project directory can contain .vela/config.json, .vela/extensions/, prompt templates, .vela/SYSTEM.md, .vela/APPEND_SYSTEM.md and skills (.vela/skills/, .agents/skills/, .skills/). Project settings can add extensions and change behavior, project extensions are code, and project skills, prompts and prompt files put instructions in front of the model, so Vela does not load them until you trust the project. AGENTS.md and CLAUDE.md are loaded either way, as in pi: they are text the model would read anyway when it reads the project, so treat a folder’s instructions as untrusted input even when you decline trust, or run with --no-context-files.

Interactive mode asks once per project and saves the answer in ~/.vela/vela.db (trusted_paths); --approve and --no-approve decide for one run; print and JSON modes never ask and leave an untrusted project’s config unloaded. The full rules are in Settings.

Project trust only controls what loads at startup. It does not limit what tools can do afterwards, and it does not make a project’s files safe to read: a README or source comment can still try to steer the model.

Channels and instance access

There are no roles (like pi). A channel’s enabled-chat list controls who can invoke the instance; it is not an isolation boundary between chats. Sessions can select different tools or bind to a Docker execution environment for session file/shell tools, while extensions and daemon host operations still run as the same OS user.

Channel senders

Lark accepts only chats listed in lark.chats, plus direct chats from the open_ids in owners (or LARK_OWNERS). Unlisted groups and DMs are ignored, even when an owner speaks in an unlisted group. Empty chats means owners’ DMs only.

Everyone in an enabled chat shares one session and its full access. They share its history, and can ask the agent to read/write files, run bash, access memory and use extension/MCP tools. Group members added later inherit this access. Enable only chats whose entire membership you trust, and restrict what the operating-system account can reach. Group @-mention gating controls when the bot runs; it is not a tool-permission boundary. Earlier group messages are sent to the model as context when someone mentions the bot.

Channel ids now omit the sender id. Old per-sender sessions are not automatically combined into shared sessions; see Gateway lifecycle. Different chats have separate transcripts, and groups bound to distinct Docker environments isolate their session file/shell tools in containers, while local chats, extensions, global memory notes, and daemon operations still share the host instance.

Every sender in a chat gets the same session and the same tools. A custom channel must enforce its own enablement boundary before delivering messages; there is no per-sender restriction, and it cannot hide earlier turns in a shared chat transcript.

Limit tools

tools is the only per-session tool availability control. Use an allowlist or +name / -name modifiers in config.json or when configuring a CLI/SDK session:

vela --tools read,grep,find -p "Review src/"
vela --exclude-tools bash

An unavailable tool is not offered to the model, and calls to it are rejected. See Tools and SDK.

This controls tool availability, not data access. For example, a session with read can still read any file accessible to the OS user, including other sessions and credentials. Removing bash does not isolate a session or make untrusted callers safe.

Block dangerous calls

Blocking risky tool calls is a user extension, not a built-in rule. In a tool_call handler, inspect event.toolName and event.input, and return { block: true, reason } to refuse matching calls. See confirm-dangerous.ts.

Load the example with vela -e ./examples/extensions/confirm-dangerous.ts, or import it and pass it in createRuntime({ extensions: [confirmDangerous] }). The example’s simple command pattern catches mistakes, not every dangerous action. Hooks can inspect other tools too; they do not restrict arbitrary extension code or provider-hosted execution. Matching tool_call handlers keep tools on the local execution path rather than using a provider-hosted equivalent.

Prompt injection

The model reads text from many places: files, command output, web pages from the web extension, memory, and messages from channel senders. Any of it can contain instructions that try to make the model do something else. Vela does not detect or block this.

Enabled Lark chats have full access to their configured execution environment: if the model reads a hostile file and then calls bash, the command runs on the host (for default local chats) or inside the chat’s configured Docker container (while extensions and daemon operations still run on the host). Isolate the environment, review changes before you apply them elsewhere, and consider a user extension that blocks or requests approval for risky calls (see confirm-dangerous.ts for writing your own).

Secrets on disk

Vela writes conversations to disk, and they can contain anything the model saw: prompts, file contents, command output, and credentials that appeared in them.

<data dir> is the project data directory under ~/.vela/projects/.

What Where Notes
Database & session history ~/.vela/vela.db ($VELA_DIR/vela.db) SQLite WAL database written with mode 0600 in a 0700 directory. Includes messages, tool calls, approvals, usage, and trust state. See Sessions
Spilled tool output <data dir>/sessions/<id>/tool-results/ Also 0600. A tool_result handler that redacts output changes only what the model sees, not raw spilled output files
Memory <data dir>/memory/ Plain Markdown files, written with mode 0600 in a 0700 directory
Recordings The file named by VELA_RECORD The raw conversation, including every model response and user input. Written with mode 0600. Do not commit it without reviewing it
Credentials ~/.vela/auth.json API keys and OAuth tokens stored by /login, mode 0600 in a 0700 directory. Never share or commit it; /logout <provider> removes an entry
Debug log ~/.vela/debug.log with VELA_DEBUG=1 Diagnostic messages

Review sessions and recordings before you share them. Keep API keys out of config files: apiKey under providers in ~/.vela/config.json and strings in built-in or extensionConfig sections accept "$VAR" references that Vela reads from the environment (see Models and Settings).

Reduce the impact

  • Run Vela in a container, virtual machine or separate account for anything you would not run by hand.
  • Use version control or backups before larger changes.
  • Give Vela only the credentials it needs, and prefer short-lived, narrowly scoped ones.
  • Review extensions before loading them and trust only projects you know.
  • Enable only Lark chats whose entire membership you trust with bash and files. Use separate OS accounts, containers or virtual machines for people who must not access each other’s data, and keep private data out of any instance they can reach.
  • Load a confirming user extension for sessions where a person should approve commands; do not treat it as a sandbox.

Reporting a vulnerability

Follow the security policy, which also says what is in scope; do not open a public issue.