Chargement de l'image...Kiro

Produit

  • À propos de Kiro
  • Agents
  • IDE
  • CLI
  • Web
  • Mobile
  • Crew
  • Tarification
  • Téléchargements

Pour

  • Entreprise
  • Startups
  • Étudiants

Communauté

  • Aperçu
  • Ambassadeurs
  • Études de cas
  • Discord
  • Événements
  • Powers
  • Boutique
  • Vitrine

Ressources

  • Docs
  • Blogue
  • Journal des modifications
  • FAQ
  • Signaler un bogue
  • Suggérer une idée
  • Soutien à la facturation

Réseaux sociaux

Conditions d'utilisation du siteLicencePolitique d'IA responsableMentions légalesPolitique de confidentialitéPréférences relatives aux témoins
Chargement de l'image...Kiro
  • Agents
  • Entreprise
  • Tarification
  • Docs
SE CONNECTERTÉLÉCHARGER
Chargement de l'image...Kiro

Pour commencer

InstallationAuthentificationVotre premier projet

Modèles

AperçuModèles disponiblesEffort de raisonnementModèles AWS GovCloud (US)

Fonctionnalités

Comment fonctionne KiroLocal command sandboxIntégrations ACP
Specs
Steering
Hooks
MCP
Autorisations
Agents personnalisés
Workflows
Agent Skills
Powers
Sessions cloudMemoryCompactionKiroignorePoints de contrôle et rewind
Outils intégrés
Portées de configuration

IDE 1.x

Nouveautés de la version 1.0
Configuration et premier lancement
Éditeur
Chat
Expérimental
DépannageRéférence 0.x

CLI

Nouveautés de V3
Configuration et première exécution
Interface utilisateur du terminal
Clavardage
Mode plein écranMode vocalMode sans interfaceACPAutocomplétion
Expérimental
Référence 2.x

Crew

Démarrage rapideInstallationFonctionnement 24/7
Chat
Agent Capabilities
Fonctionnalités
Interfaces
Applications
Système et stockageConfigurationSécuritéDépannage

Web

Configuration et première exécutionIdentity Center
Connectez vos dépôts
Utilisation de l'agent
Mode autonomeAutomatisationsMémoireSynchronisation de la configuration
Sandbox

Mobile - Aperçu

Aperçu

Commandes et référence

Commandes CLICommandes à barre obliqueOutils intégrésCodes de sortieParamètres

Facturation

AperçuGestion de votre abonnementMise à niveau de votre forfaitRétrogradation de votre forfaitAnnulation de votre forfaitAchat de crédits supplémentairesGestion de vos paiementsGestion des notifications d'utilisationGestion de vos impôtsCommuniquer avec le soutien à la facturationSuppression de votre compteQuestions connexes

Entreprise

ConceptsDémarrage rapide de l'intégration
Connexion de votre fournisseur d'identité
Options de déploiementAbonnez votre équipeGérer les abonnements
Governance
Surveillance et suivi
ParamètresMises à jour géréesFacturationIAMRégions prises en charge

Confidentialité et sécurité

AperçuProtection des donnéesRéférences de codeValidation de la conformitéSécurité de l'infrastructureAutorisations IAMPare-feu, mandataires et périmètres de donnéesPoints de terminaison VPC (AWS PrivateLink)

Guides

Aperçu
Prise en charge des langages
Apprendre en jouant

Migration

Migration depuis Q DeveloperMigration depuis VSCodeMise à niveau depuis Q CLI
  1. Docs
  2. Fonctionnalités
  3. Local command sandbox
Afficher en Markdown

Local command sandbox

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et la version anglaise originale, la version anglaise prévaudra.
Afficher en Markdown

The local command sandbox adds an operating-system boundary around shell commands run by Kiro's agent harness. It limits what each command and child process can reach without moving the agent itself into the sandbox.

Info

The local command sandbox is available in Kiro IDE 1.3 and later, and in Kiro CLI 2.31 and later local V3 sessions. It is off by default.

What the sandbox covers

The agent harness stays outside the sandbox. Before a shell command starts, permissions decide whether Kiro may run it. The sandbox then limits what the running command and its child processes can reach.

Inside the sandbox:

  • Terminal commands the agent runs, and every child process they start.
  • Stdio MCP server processes, when you turn on MCP wrapping. See Wrap stdio MCP servers.

Outside the sandbox:

  • The agent harness and its conversation with the model.
  • Built-in file tools. Permission rules still govern what they can read and write.
  • Remote HTTP and SSE MCP servers. Their network traffic does not follow sandbox rules.

The sandbox applies only to sessions running on your machine. Cloud sessions use the managed cloud sandbox instead.

The sandbox reduces what a command can do; it is not a guarantee of isolation. Keep reviewing proposed commands, and keep deny rules for operations that must never run.

Platform requirements

PlatformRequirement
macOSNone. Kiro uses the built-in Seatbelt sandbox through sandbox-exec.
LinuxBubblewrap (bwrap) on your PATH. Kiro does not install it. COMMON_DEPENDENCIES, and DEFAULT_BLOCKED with allowed hosts, also need socat. Install both through your distribution's package manager.
WindowsOne administrator setup before COMMON_DEPENDENCIES or DEFAULT_ALLOWED can run commands. Kiro IDE prompts you to complete it. In Kiro CLI, run /sandbox setup. DEFAULT_BLOCKED works before setup.

When the platform backend is missing, Kiro reports the sandbox as unavailable. Commands then run without operating-system isolation unless the current mode requires protection.

Use the sandbox

Select Command sandbox in the status bar. Kiro opens the active configuration file: the project file when one exists, otherwise your global file. If neither file exists, Kiro creates a global file containing {"enabled": false}.

To open the global file directly, run Open User Sandbox Config (JSON) from the command palette.

Set enabled to true, then choose a network mode:

json
{ "enabled": true, "networkAccess": "COMMON_DEPENDENCIES" }

Save the file. Valid changes apply to the running session. The status bar shows Applying, then Active.

StateMeaning
OffNo active configuration enables the sandbox.
ActiveCommands use the current sandbox and network mode.
ApplyingKiro is applying a configuration change.
ErrorThe change failed. The prior settings stay active.
UnavailableThe platform backend is missing. Commands run without operating-system isolation.

The tooltip also reports when requested MCP wrapping is unavailable.

Configuration

Both clients read sandbox.json at global and project levels:

ScopePathUse for
GlobalKiro IDE: ~/.kiro/settings/sandbox.json. Kiro CLI: $KIRO_HOME/settings/sandbox.json when set, otherwise ~/.kiro/settings/sandbox.json.Your default policy across projects.
Project<workspace-root>/.kiro/settings/sandbox.jsonTurning the sandbox on, or tightening it, for one repository.

In a multi-root IDE workspace, only the first workspace folder supplies the project file.

Keys

KeyRequiredValuesDefault
enabledYestrue, false
networkAccessNoDEFAULT_BLOCKED, COMMON_DEPENDENCIES, DEFAULT_ALLOWEDDEFAULT_BLOCKED
mcpSandboxingNotrue, falsefalse

networkAccess values are case-sensitive. Unknown keys are ignored.

How global and project settings combine

  • When the global policy is active, a project file can only tighten it. A project cannot set enabled to false, choose a more open network mode, or turn off MCP wrapping enabled globally.
  • When the global file is absent or has enabled: false, a project file with enabled: true turns on the sandbox for that project.

A repository you clone cannot use its project file to open network access or disable an active global sandbox policy.

Network modes

networkAccess sets the starting point for outbound network access from sandboxed commands. Your sandbox_network permission rules refine it.

ModeOutbound network
DEFAULT_BLOCKEDBlocked, except hosts allowed by a sandbox_network rule. This is the default.
COMMON_DEPENDENCIESCommon package, source, build, and container services are reachable. Other hosts stay blocked unless a rule allows them.
DEFAULT_ALLOWEDOpen. Sandboxed commands can reach any host. Do not rely on sandbox_network deny rules in this mode.

Use DEFAULT_BLOCKED for the tightest network control. Use COMMON_DEPENDENCIES when normal installs and builds need common development services. Use DEFAULT_ALLOWED only when network filtering is not required.

Allow specific hosts

sandbox_network is a permission capability. Host rules are applied in order. The first matching rule decides, unlike other permission capabilities where a deny always wins. Put specific hosts before broader wildcards that also match them.

Patterns are case-insensitive. They support exact host names and *.suffix wildcards.

yaml
# ~/.kiro/settings/permissions.yaml rules: - capability: sandbox_network match: ['packages.internal.example.com'] effect: allow # Keep this rule before the wildcard below. - capability: sandbox_network match: ['uploads.example-corp.net'] effect: deny - capability: sandbox_network match: ['*.example-corp.net'] effect: allow

Workspace rules in ~/.kiro/workspace-roots/<hash>/permissions.yaml work the same way for one project.

sandbox_network is not part of the all meta-capability. capability: all, effect: allow does not open sandboxed network access. Your fs_read and fs_write rules also shape which paths sandboxed commands can see and write.

Wrap stdio MCP servers

Set mcpSandboxing to true to start stdio MCP server processes inside the same sandbox as shell commands:

json
{ "enabled": true, "networkAccess": "DEFAULT_BLOCKED", "mcpSandboxing": true }

Remote HTTP and SSE MCP servers are not affected. Changing mcpSandboxing restarts local MCP servers, which can take about a minute. If wrapping fails for a server, command sandboxing stays active and Kiro reports that the server is not covered.

A project cannot turn off MCP wrapping enabled globally. Set it globally when you want it across projects, or in one project file when only that repository needs it. See MCP security best practices for broader server guidance.

Errors and recovery

A command cannot reach a host. Add a sandbox_network allow rule. You can also use COMMON_DEPENDENCIES for a common development service.

The sandbox is unavailable. On Linux, check that bwrap is on your PATH. Install socat when proxy filtering is needed. On Windows, complete the administrator setup. Until you fix the cause, commands run without operating-system isolation. After fixing it, reload the IDE window or start a new CLI session.

Windows refuses COMMON_DEPENDENCIES or DEFAULT_ALLOWED. Complete the one-time setup from the IDE prompt, or run /sandbox setup in CLI. You can use DEFAULT_BLOCKED before setup.

MCP servers are not covered. Wrapping failed for one or more stdio servers. Shell command sandboxing remains active. Check the server command and MCP logs or status. Saving a changed mcpSandboxing value restarts local MCP servers.

The status bar shows Error. The file is malformed or unreadable, or Kiro could not apply the change. Prior settings stay active. Fix the JSON and save it again. Use Reload Window when Kiro offers it.

Related

  • Permissions for sandbox_network, fs_read, and fs_write
  • Headless mode for non-interactive CLI runs
  • MCP security best practices for local and remote servers
  • How Kiro works for the agent harness
Page mise à jour : 13 octobre 2026
Comment fonctionne Kiro
Intégrations ACP