/iblai-vibe:iblai-vibe-agent-virtual-machinefrom ibl.ai vibe
Adds the Network Access section to an agent's ephemeral VM sandbox: egress profile radio group, network picker with CRUD, and environment variable assignment with billing notice.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add the agent Sandbox Network Access section -- "Decide what this
agent's virtual machine can reach and which environment variables it can
use." It renders under the Sandbox Type card while Ephemeral Virtual
Machine (called Virtual Machine Shell before @iblai/web-containers 2.0.0)
is on, and it holds three controls plus a billing notice:
The networks and environment variables are organization-wide records — see
/iblai-vibe-virtual-machine. This section turns them on for one agent,
and adds new ones without leaving the agent.








Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
/iblai-vibe-agent-sandbox — the Sandbox tab itself: the
Sandbox Type card (Calculator / Ephemeral Virtual Machine /
Permanent Virtual Machine) and, for Permanent Virtual Machine, Claw
instance management and the prompt files.
SandboxConfig mounts this section for you./iblai-vibe-virtual-machine — the organization's Network page
and Secrets → Environment Variables tab behind the pickers here.
Deleting an environment variable happens there, not here./iblai-vibe-account — Secrets → Services, where keys such as
Stripe's are added before an agent can use them./iblai-vibe-auth)@iblai/mcp in .mcp.json)@iblai/iblai-js@^3.6.0 (resolves @iblai/web-containers 2.6.0).
Releases before 2.68.0 call these "network policies" and "secrets", show
secrets only under Public Internet and Custom Allowlist, and add them
only through a Manage Secrets popup.mentorId (agent UUID). Do NOT invent one.enable_virtual_machine: true) — see /iblai-vibe-agent-sandbox.
Nothing here applies to Calculator or Permanent Virtual Machine.Ibl.Mentor/VirtualMachineNetworkPolicies/list
and Ibl.Mentor/VirtualMachineSecrets/list permissions to see the
network picker and the environment variables; each hides independently
on a 403.Before proceeding, check for an iblai.env in the project root. Look for
PLATFORM, DOMAIN, and TOKEN variables. If the file does not exist or
is missing these variables, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
You usually mount nothing. SandboxConfig renders
VirtualMachineNetworkSection itself whenever the agent's
enable_virtual_machine flag is on, so following
/iblai-vibe-agent-sandbox Step 2 already gives you this section.
Mount it standalone only when you build your own sandbox page:
// app/(app)/agents/[mentorId]/network/page.tsx
"use client";
import { useParams } from "next/navigation";
import { VirtualMachineNetworkSection } from "@iblai/iblai-js/web-containers";
export default function AgentNetworkPage({
platformKey,
username,
}: {
platformKey: string;
username: string;
}) {
const { mentorId } = useParams<{ mentorId: string }>();
return (
<div className="flex flex-1 flex-col bg-white p-6">
<VirtualMachineNetworkSection
platformKey={platformKey}
mentorUniqueId={mentorId}
username={username}
/>
</div>
);
}
The component owns its own data: it reads the agent settings, the
organization's networks, environment variables and Services keys, keeps a
local draft, and saves through Save / Discard. It does not
read AgentSettingsProvider, and it does not check
enable_virtual_machine — gate the mount yourself if you render it
outside SandboxConfig.
get_component_info("VirtualMachineNetworkSection")
get_component_info("SandboxConfig")
get_hook_info("useListVirtualMachineNetworkPoliciesQuery")
<VirtualMachineNetworkSection> — @iblai/iblai-js/web-containers| Prop | Type | Required | Description |
|---|---|---|---|
platformKey | string | Yes | Organization key (org slug) |
mentorUniqueId | string | Yes | Agent UUID |
username | string | Yes | Signed-in admin — the mentor-settings path segment, and the agent-name lookup when a network delete is refused |
A grey note above the controls: "Virtual machine time is billed to
the chatting user's credits: $1 per 10 minutes by default, prorated
per second. Your organization's rate may differ." The figures come
from VIRTUAL_MACHINE_DEFAULT_BILLING ({ usd: 1, minutes: 10 });
the real rate is configurable per organization.
Four radio cards, each with a label and one line of explanation:
| Profile | Wire value | Reachability |
|---|---|---|
| No Network | none (default) | The VM cannot reach anything |
| Package Registries | registries | PyPI, npm, apt and apk only, for installing software |
| Public Internet | public | Any public website; private networks, localhost and cloud metadata stay blocked |
| Custom Allowlist | custom | Only the addresses in the network picked below |
VirtualMachineAdminTab as the organization's Network page.VERCEL_TOKEN). Save creates the environment variable, and the row
becomes an ordinary one.VARIABLE · addresses, and a pencil that opens Edit Environment
Variable (its button reads Save).These mirror the backend; getting them wrong is a 400.
| Situation | What happens |
|---|---|
| Custom Allowlist with no network | Save disabled, inline red message |
| Moving to No Network / Package Registries while variables are on | A Remove Environment Variables? dialog; Remove and Save sends virtual_machine_secret_ids: [] in the same request |
| A variable that is on is sent to an address the chosen network does not allow | An amber panel lists each one ("Acme API key is sent to api.acme.com, which Acme APIs doesn't allow."), with Add Hosts to {network} and Save — one PATCH on the network, then the settings save |
| More than 20 variables | Not reachable; the checkboxes disable at the cap |
| Backend 400 | Field errors land under the matching control (virtual_machine_egress, virtual_machine_network_policy_id, virtual_machine_secret_ids); anything else becomes a form-level message |
| Backend 403 on save | "You do not have permission to change these settings." |
Only the keys that actually changed are sent, and the save goes
through useEditMentorJsonMutation — not the multipart
useEditMentorMutation, which drops an empty list and a null, so
"turn every variable off" and "clear the network" would never reach the
backend. Mirror that choice in custom UI.
Read from GET, written with PUT on
${dmUrl}/api/ai-mentor/orgs/{org}/users/{username}/mentors/{mentor_unique_id}/settings/
(a partial update — send only what changes).
| Field | Read shape | Write shape |
|---|---|---|
virtual_machine_egress | "none" | "registries" | "public" | "custom" | same |
virtual_machine_network_policy | { id, name, allowed_hosts } or null | written as virtual_machine_network_policy_id: number | null |
virtual_machine_secrets | [{ id, name, env_var, allow_hosts, source_credential_id }] | written as virtual_machine_secret_ids: number[] — replaces the whole set, [] turns all off |
The backend binds environment variables only to an agent with network
access (public or custom). The network and environment variable
endpoints themselves are documented in /iblai-vibe-virtual-machine.
From @iblai/iblai-js/web-containers:
VirtualMachineNetworkSection, VirtualMachineNetworkSectionProps —
this section.SandboxConfig — the Sandbox tab that mounts it (see
/iblai-vibe-agent-sandbox).VirtualMachineAdminTab — what Manage Networks renders inside the
popup.HostPortChipInput, HostPortChipInputProps — the address chip
input both dialogs use; reusable for any allowlist field.From @iblai/iblai-js/data-layer:
useGetMentorSettingsQuery, useEditMentorJsonMutation — read and
write the three agent fields above.useListVirtualMachineNetworkPoliciesQuery,
useUpdateVirtualMachineNetworkPolicyMutation — the picker's
options and the "add the missing hosts" PATCH.useListVirtualMachineSecretsQuery,
useCreateVirtualMachineSecretMutation — the checkboxes, and a variable
added or linked from here.useGetIntegrationCredentialsQuery,
useGetIntegrationCredentialsSchemaQuery — the Services keys listed as
"Not used by agents yet".VIRTUAL_MACHINE_EGRESS_PROFILES,
VIRTUAL_MACHINE_MAX_SECRETS_PER_MENTOR (20),
VIRTUAL_MACHINE_DEFAULT_BILLING ({ usd: 1, minutes: 10 }) — the
constants the UI is built from.isVirtualMachineEgressNetworked — true for public and custom
(the profiles whose environment variables work).findUncoveredSecretHosts — the variable-vs-network check behind
the amber panel.getVirtualMachineApiError, getVirtualMachineErrorStatus —
normalise a 400 into { message, fieldErrors } and read the status
off an RTK Query error.VirtualMachineEgress, MentorVirtualMachineSettings,
MentorVirtualMachineSettingsUpdate, VirtualMachineNetworkPolicy,
VirtualMachineSecret, VirtualMachineUncoveredSecretHosts.SDK source: packages/web-containers/src/components/claw-sandbox/virtual-machine-network-section.tsx,
with the shared dialogs under components/virtual-machine/ and the data
layer under packages/data-layer/src/features/virtual-machine/.
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build -- must pass with zero errorspnpm test -- vitest must pass/agents/<id>/sandbox in the browser as /iblai-vibe-ops-test says: open it,
use every control this skill added, read the console, check the phone width.mentorReducer and mentorMiddleware
(they register virtualMachineApiSlice)initializeDataLayer(): 5 args (v1.2+)@reduxjs/toolkit: Deduplicated via webpack aliases in next.config.tssonner and @iblai/iblai-web-mentor must be installed
(pnpm add sonner @iblai/iblai-web-mentor)allow_hosts. The agent never sees it, and
no endpoint ever returns it.mentorUniqueId vs mentorId: these endpoints key on the
agent's UUID, not the integer pk — the same UUID as the rest of the
agent-* family.iblai-vibe-agent-virtual-machine-add-env-var.png (opens in a new tab)iblai-vibe-agent-virtual-machine-add-network.png (opens in a new tab)iblai-vibe-agent-virtual-machine-custom.png (opens in a new tab)iblai-vibe-agent-virtual-machine-link-service.png (opens in a new tab)iblai-vibe-agent-virtual-machine-manage-networks.png (opens in a new tab)iblai-vibe-agent-virtual-machine-policy-required.png (opens in a new tab)iblai-vibe-agent-virtual-machine-public.png (opens in a new tab)iblai-vibe-agent-virtual-machine.png (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job