Skip to content

Feat/sandbox cli v7#103

Merged
innsd merged 8 commits into
mainfrom
feat/sandbox-cli-v7
Jul 1, 2026
Merged

Feat/sandbox cli v7#103
innsd merged 8 commits into
mainfrom
feat/sandbox-cli-v7

Conversation

@sjy3

@sjy3 sjy3 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

This MR enhances agentkit sandbox model and WebSearch configuration:

  • Adds --model-base-url support to sandbox create/exec for custom model endpoints and custom --model-provider
    values.
  • Injects custom model base URLs into OPENCODE_BASE_URL, CODEX_BASE_URL, MODEL_BASE_URL, and ANTHROPIC_BASE_URL,
    while skipping built-in Codex model config/catalog generation.
  • Adds WebSearch setup for sandbox create:
    • --skill-role-name to create or reuse an IAM Role.
    • --websearch-apikey to inject WEB_SEARCH_API_KEY.
  • Lets sandbox exec inherit custom model base URLs from the tool and disable API-key based WebSearch per session via
    --disable-websearch-apikey.
  • Updates the default TOS mount to /home/gem/workspace and preserves the top-level source directory during uploads.
  • Updates sandbox docs and CLI test coverage.

sjy3 and others added 8 commits June 25, 2026 17:14
…create/exec

- sandbox create: add --skill-role-type (existed/new) and --skill-role-name options
  for IAM role configuration; automatically create role with AgentKitSkillsSandboxAccess
  policy when type=new, idempotent if role already exists
- sandbox create: add --websearch-apikey option to inject WEB_SEARCH_API_KEY env var;
  mutually exclusive with --skill-role-type
- sandbox create: show websearch hint only when neither role nor apikey is configured
- sandbox exec: add --enable-websearch-apikey/--disable-websearch-apikey flag for
  per-session websearch toggle; warn (not error) when used in role mode; error when
  used without apikey configured on the tool
- sandbox exec: fix websearch config lookup to fetch from remote API when --tool-id
  is specified and local cache doesn't match, preventing false negatives
- session_create: add disable_websearch_apikey param to build_model_envs to erase
  WEB_SEARCH_API_KEY when disabled
@sjy3 sjy3 requested a review from innsd July 1, 2026 02:28
@innsd innsd merged commit b5fa693 into main Jul 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants