Skip to navigation

Namespace

Connect your AI agents to Namespace.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

Authentication: Tenant token. See Magic Link for the runtime auth flow.

Sample use cases

  • List the compute instances running in the ci-runners workspace
  • Show the build cache usage for the last 7 days
  • Destroy instances that have been idle for more than 2 hours

Available Tools

create_ingress

Expose a port on a running instance through a public HTTPS hostname.

create_instance

Create a billable compute instance with a shape, optional containers, volumes and ingresses.

destroy_instance

Permanently destroy an instance and its ephemeral state. Cannot be undone. Use list_instances to find instance IDs.

destroy_persistent_volume_snapshot

Destroy a persistent volume snapshot: Namespace marks it abandoned (abandonedAt) and stops using it as a base for new volumes.

destroy_persistent_volumes

Permanently destroy persistent volumes matching either IDs or tags (not both), with their data.

extend_instance

Change when an instance is destroyed: set exactly one of extend_by (add time), ensure_minimum (minimum remaining lifetime) or new_deadline (absolute).

generate_report

Generate a per-instance report (resources, peak CPU/RAM use, timing) for instances created in a time range, optionally filtered.

get_artifact_usage

Get object storage usage (storage GB-minutes and bytes read) per product, such as the container registry or build caches, for a date range within one month.

get_cache_volume

Get one cache volume generation by ID, including attachment history and cached container images.

get_concurrency

Get current usage and limits (instances, vCPUs, memory) for each concurrency pool.

get_instance

Get one instance’s status, shape, deadline, containers, exported URLs and access endpoints.

get_instance_diagnostics

Get diagnostics for an instance, currently its out-of-memory (OOM) kill events.

get_instance_logs

Get log lines for one or more instances (running or finished), optionally filtered by container and time range.

get_instance_metrics

Get CPU, memory, I/O-wait and storage time series for an instance, optionally within a time range.

get_kubernetes_config

Get a kubeconfig for an instance created with Kubernetes enabled (create_instance feature_configuration).

get_network_configuration

List the source IP ranges (CIDRs) that this workspace’s instances use for outbound traffic, e.g. to allowlist them in a firewall.

get_persistent_volume

Get one persistent volume by ID and tag, including a destroyed one, which list_persistent_volumes no longer returns.

get_ssh_config

Get an SSH endpoint, username and host keys for an instance or one of its containers.

get_usage

Get compute and build usage (unit and wall minutes) for a date range within one month, in total and per day.

get_usage_time_series

Get usage over an arbitrary time range as a time series, optionally filtered (platform, shape, GitHub repo/branch) and broken down by a dimension.

get_vnc_config

Get the VNC endpoint and username for a macOS instance’s desktop; Linux instances return an error.

get_volume_tag_summary

Get the summary for one cache volume tag: size and each generation with its state and attachment.

get_volume_usage

Get cache and persistent volume storage usage for a date range within one month. Defaults to the current month.

list_cache_volumes

List the workspace’s cache volume generations with tag, size, state and which instance each is attached to.

list_ingresses

List the public ingresses (names and hostnames) on an instance. Use list_instances to find instance IDs.

list_instance_egress

List outbound connections (domains, resolved IPs, allow/deny decision) an instance made, optionally within a time range.

list_instance_notifications

List the latest lifecycle event (status change) per instance, newest first.

list_instances

List compute instances in the configured region.

list_persistent_volume_snapshots

List the snapshots of one persistent volume, identified by ID or tag.

list_persistent_volumes

List persistent (durable) volumes, optionally filtered by tag or site.

list_volume_tag_summaries

List one summary per cache volume tag: size and each generation with its state and attachment.

run_command

Run a command on an instance (or one of its containers) and wait for it; returns exit code, stdout and stderr (last 64 KB each).

start_containers

Start more containers on a running Linux instance.

wait_instance

Block until an instance (or one of its containers) is ready, then return its current metadata.