Skip to content

feat(integrations)!: send one API key to several endpoints in a chosen variable - #14506

Merged
cv merged 1 commit into
v1from
cv/api-sandbox-env
Nov 16, 2026
Merged

cv merged 1 commit into
v1from
cv/api-sandbox-env

Conversation

@cv

@cv cv commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

A kind: api integration, and openshell_api in HCL, now takes endpoints, a list of URLs, instead of endpoint, and sends one gateway-held key to all of them; the new sandboxEnv (sandbox_env) names the variable the sandbox sees it in. Tools that read a fixed variable, such as clients of NVIDIA's hosted APIs reading NVIDIA_API_KEY across integrate.api.nvidia.com and ai.api.nvidia.com, can now use an API integration. Documents that set endpoint must move to endpoints.

Problem

A kind: api integration gives the sandbox its placeholder only as NEMOCLAW_API_<registration>_KEY, where the registration ends in 12 hex digits of the image scope, so the name changes with the image and tools that read a fixed variable can't find it.
Each integration binds one URL, and two integrations can't share a variable either: OpenShell rejects a sandbox whose attached providers claim the same credential variable ("credential env key '…' is provided by both provider '…' and provider '…'; use provider-specific env names").
An API spread over several hosts therefore can't be reached with one key under the name its clients read.

Change

  • endpoints replaces endpoint on kind: api and openshell_api. One integration projects to one OpenShell profile: one credential, and one endpoint with its path subtree per URL. The registration records the list under NEMOCLAW_API_ENDPOINTS, and the profile under the nemoclaw.nvidia.com/endpoints annotation.
  • sandboxEnv (sandbox_env in HCL) is optional and validated like web search's; without it the variable keeps today's derived name.
  • An openshell_api with an mcp block takes exactly one URL, since NemoClaw projects its tool rules onto one exact path.
  • NemoClaw adds no check that two registrations on a sandbox use different variables: OpenShell owns that rule and reports it during apply. Searching for NemoClaw rules that re-implement it found none to remove. The one-web-search-per-sandbox rule stays: it guards NemoClaw's single-search model (Brave and Tavily keys use different variables, which OpenShell accepts), and the reserved brave-search/tavily-search and registration-name checks concern provider names, not variables.
  • The intent record moves to version 23. Docs, the release notes' breaking changes, the travel-team examples, the configuration schema and the provider schema snapshot follow.

Beyond CI

On a local Docker engine, a deployment with three OpenClaw sandboxes, a build.nvidia.com inference provider and one kind: api integration listing https://integrate.api.nvidia.com/v1 and https://ai.api.nvidia.com/v1 with sandboxEnv: NVIDIA_API_KEY applied. Inside a sandbox NVIDIA_API_KEY held an OpenShell placeholder, and Python started by the OpenClaw agent got HTTP 200 from the embeddings endpoint on the first host and the reranking endpoint on the second, while example.com was refused. That is one run against two NVIDIA endpoints; it does not establish other APIs.

…n variable

A kind: api integration, and openshell_api in HCL, now takes endpoints, a
list of URLs, instead of endpoint, so one registration covers an API whose
services sit on several hosts. sandboxEnv (sandbox_env in HCL) names the
variable the sandbox sees the key in; without it the derived
NEMOCLAW_API_<NAME>_KEY name stays. OpenShell owns the rule that two
providers on one sandbox cannot put keys in the same variable and reports it
during apply, so NemoClaw adds no check of its own. An MCP-policy API takes
exactly one URL.

The intent record moves to version 23.

Signed-off-by: Carlos Villela <[email protected]>
@cv

cv commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi 1.5.2 (session format 3), as a helper agent in Herdr Session header gives the format; the Pi version comes from the harness's install path in the system prompt, not the record
Skills recorded write-tests (complete read); test-driven-development (complete read); nemoclaw-contributor-create-pr (complete read) Tool results in the session record to the cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool results to the cutoff
Tool calls partial typescript: 222 Wrapper calls to the cutoff, including failed ones; nested shell, git and workspace calls inside each program are not recorded separately. The same session also wrote the stacked examples change
Tokens partial input: 50979126; cached input: 49707069; output: 139570 Sum of assistant message usage (input + cacheRead + cacheWrite; cacheRead; output) to the cutoff; covers the whole session, including the examples work in the same session
Session window recorded 2026-11-16T18:51Z to 2026-11-16T19:51Z; 60 min First record entry to the cutoff, including idle time
Compactions recorded 0 No compaction entries to the cutoff; 13 context edits (elisions) are not compactions
Models recorded azure/anthropic/claude-opus-5-5 (nvidia-internal provider) Model-change entry and assistant messages; no changes
Reasoning levels recorded high One thinking-level entry; no changes

@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 40d4c73 into v1 Nov 16, 2026
66 checks passed
@cv
cv deleted the cv/api-sandbox-env branch November 16, 2026 20:10
@wscurran wscurran added area: integrations Third-party service integration behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality v1 NemoClaw v1 branch labels Nov 16, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: integrations Third-party service integration behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants