Sandboxing and information control¶
URSA is designed for powerful scientific workflows. Some agents can write files, run shell commands, read local files, call web tools, and connect to external MCP servers. This power requires careful information-control practices.
Use a dedicated workspace¶
Run URSA in a workspace created for the task:
Avoid running execution workflows directly inside repositories, home directories, credential directories, or folders containing sensitive data unless that is intentional.
Understand execution risk¶
The Execution Agent can:
- create and edit files,
- run shell commands,
- install or import packages, including when resolving missing dependencies,
- inspect outputs and continue iterating.
Potential risks include:
- modifying or deleting files,
- leaking data through prompts, network calls, or logs,
- running expensive or long-lived processes,
- executing unsafe generated code.
Use a virtual machine, container, dedicated user account, or isolated environment for high-risk tasks.
Command sandbox¶
See the Sandboxing for setup, access controls, safety settings, and troubleshooting.
File access outside the workspace¶
The workspace is a working directory, not a filesystem security boundary.
read_file resolves the requested path and permits reads within the workspace
and the skills directory configured through URSA_SKILLS_PATH, without an
additional LLM safety assessment. Relative paths are resolved from the workspace
and absolute paths within either permitted directory are also accepted.
Paths containing ../ and symlinks are rejected if they resolve outside these
directories, unless the override below is enabled. Copy other external inputs
into the workspace before reading them with this tool. File contents may be
sent to the configured model as tool results.
To explicitly permit outside reads, set URSA_ALLOW_UNSAFE_READS=1 before
launching URSA. The values 1, true, yes, and on enable this override
(case-insensitive, with surrounding whitespace ignored). Unset or any other
value keeps reads restricted to the permitted directories. This grants read_file access to
any file readable by the URSA process, including through absolute paths and
symlinks.
Although write_code checks that its target resolves inside the workspace,
this does not isolate every tool. The command sandbox applies only to
run_command. Use operating-system permissions or an isolated environment
to restrict access across tools.
Command screening¶
Set the URSA_SAFETY_LEVEL environment variable before launching URSA to select
the LLM screening policy for run_command. Values are case-insensitive.
| Value | Behavior |
|---|---|
default (also used when unset) |
Assesses the command with trust assumptions for configured executables, agent-created files, and LaTeX-related operations. The prompt also treats package installation for configured executables as safe. |
low |
Asks the model to scrutinize destructive commands and flag high-concern attempts to extract sensitive information, while trusting workspace files. |
trusted |
Still calls the model, but supplies only a generic statement that the agent is trusted, without the proposed command. This does not provide a command-specific assessment. |
none |
Bypasses the LLM assessment; sandbox settings still apply. |
yolo |
Bypasses the LLM assessment and disables sandboxing. |
Unrecognized values use the default prompt. These policies are model judgments, not deterministic restrictions: they can accept unsafe
commands or reject legitimate ones. They do not screen read_file or provide
filesystem or network isolation.
Command timeout¶
run_command executes through a shell with a default timeout of 600,000 seconds
(approximately seven days). Set URSA_COMMAND_TIMEOUT_SECONDS before launching
URSA to change this limit, for example URSA_COMMAND_TIMEOUT_SECONDS=300 for
five minutes.
The value must be a positive integer number of seconds.
When the timeout is reached, the tool returns a timeout message.
This limit applies to subprocess execution, not the preceding LLM safety check.
Web tools are opt in¶
URSA web tools are opt in for information-control reasons. They are disabled by default in core CLI configuration.
Enable them only when you want URSA to make network requests through web-search tools:
or:
When web tools are enabled, URSA may query search services or retrieve web pages as part of an agent workflow. Do not enable web tools for data that should remain fully local.
Use groups to restrict endpoints¶
Security groups can restrict which model endpoint base URLs are allowed:
Create and use a group:
ursa create-group research allowed_urls.yaml
ursa --config config.yaml --group research --name research-agent
Use narrow allowlists for sensitive projects. See Groups and endpoint security.
Be careful with MCP servers¶
MCP servers can expose powerful external tools. Only connect MCP servers that you trust, and do not run the URSA MCP server as a shared multi-user service without adding isolation.
Protect secrets¶
- Prefer
api_keyenvironment references rather than literal API keys in YAML files. - In the desktop dashboard, prefer Keyring so keys are kept out of configuration files.
- Do not store API keys in persistent agent names or prompts.
- Review shared agent archives before distributing them.
- Avoid committing project-specific config files that contain endpoint secrets.
Dashboard-stored model credentials are bound to their provider or endpoint origin. Changing the endpoint host requires saving the key again. The dashboard passes a key to its worker through a one-time private pipe and removes credential-like variables from the worker environment so agent-launched commands do not inherit model API keys.
Containerization options¶
Containers can provide partial isolation. The exact command depends on your environment, but the general pattern is:
- mount only the workspace URSA needs,
- pass only the environment variables URSA needs,
- avoid mounting your full home directory,
- run as a non-root user where practical.
See Sandboxing for container examples.
Responsible-use checklist¶
Before running an execution or web-enabled workflow, ask:
- Am I in a dedicated workspace?
- Does this task need web access?
- Does this task need access to sensitive files?
- Is the model endpoint approved for this data?
- Should I use a local endpoint or isolated container?
- Am I comfortable sharing any generated persistent state?