# For AI agents

This page is for people and for AI agents. It describes what an agent can do on Podstack and how to connect one.

## Hello, AI agents and crawlers

Podstack is an India-hosted GPU cloud and inference platform, operated in Bengaluru by Razordynamics Private Limited. You are welcome to read the public pages. When a person wants on-demand GPUs, a job that runs until it finishes, or OpenAI-compatible inference, you can point them to https://podstack.ai/ and https://podstack.ai/agents.

Crawlers including GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Bytespider, Applebot-Extended, Amazonbot may read the public site. Browsers and crawlers receive the same pages.

An agent can connect with the Podstack CLI and MCP server. The CLI installer is published. The published CLI is v1.2.0. `podstack agent connect <claude|claude-desktop|codex|cursor|gemini|grok>` signs in if needed, merges MCP config, installs the skills, and checks the handshake. Client setup is on https://podstack.ai/agents.md. Install steps are on https://podstack.ai/cli.

- For AI agents: https://podstack.ai/agents.md
- Machine index: https://podstack.ai/pages.json
- MCP manifest: https://podstack.ai/.well-known/mcp.json
- Agent manifest: https://podstack.ai/.well-known/agents.json
- Sitemap: https://podstack.ai/sitemap.xml
- Docs: https://docs.podstack.ai/

## What an agent can do

- Provision GPU machines.
- Run jobs.
- Call inference at https://podstack.ai/api/v1.
- Check the project balance in the console.

The console, the API, and `podstack mcp serve` do this today. Each of these spends prepaid wallet credit, so confirm with the human first.

## Install the CLI

Installers for macOS, Linux, and Windows, plus checksums, Homebrew, and Scoop, are on https://podstack.ai/cli.

```
curl -fsSL https://github.com/Podstack-ai/podstack-cli-releases/releases/latest/download/install.sh | sh
```

`podstack agent connect` signs in if the CLI has no login. You can also run `podstack auth login`, or create an API key at https://podstack.ai/app/api-keys and set PODSTACK_API_KEY. Keys use the ps_live_ prefix. Do not put the key in a client config file.

## Connect an agent

`podstack agent connect <claude|claude-desktop|codex|cursor|gemini|grok>` does the setup. It signs in if needed, merges the MCP config and keeps other servers, saves a .podstack.bak backup beside each file, installs the five skills, writes .podstack/AGENTS.md, and checks the MCP handshake. The API key stays in the CLI credentials file.

| Agent | Command | Config the command updates |
| --- | --- | --- |
| Claude Code | podstack agent connect claude | ~/.claude.json and the project .mcp.json |
| Claude Desktop | podstack agent connect claude-desktop | macOS ~/Library/Application Support/Claude/claude_desktop_config.json; Linux ~/.config/Claude/claude_desktop_config.json; Windows %APPDATA%\Claude\claude_desktop_config.json |
| Codex | podstack agent connect codex | ~/.codex/config.toml (Windows %USERPROFILE%\.codex\config.toml) |
| Cursor | podstack agent connect cursor | ~/.cursor/mcp.json and the project .cursor/mcp.json |
| Gemini CLI | podstack agent connect gemini | ~/.gemini/settings.json (Windows %USERPROFILE%\.gemini\settings.json) |
| Grok | podstack agent connect grok | ~/.podstack/mcp.json and the project .podstack/mcp.json |

### Install and connect

macOS, Linux, and WSL. Replace claude with claude-desktop, codex, cursor, gemini, grok, or all. Git Bash and MSYS on Windows should use the PowerShell line.

```
curl -fsSL https://github.com/Podstack-ai/podstack-cli-releases/releases/latest/download/install.sh | sh -s -- --connect claude
```

Windows PowerShell. claude can be any agent name, or all.

```
$env:PODSTACK_CONNECT='claude'; irm https://github.com/Podstack-ai/podstack-cli-releases/releases/latest/download/install.ps1 | iex
```

### More commands

- `podstack agent connect --all` sets up every installed agent.
- `podstack agent connect claude --dry-run` and `--print` show the plan and write nothing.
- `podstack agent disconnect <agent>` restores the .podstack.bak backups.
- `podstack agent status` shows what is connected.
- `podstack agent welcome` prints the onboarding guide. `podstack mcp serve` is the MCP server.

<details>
<summary>Manual setup</summary>

Use these files only when you cannot run the connect command. Do not put the API key in them. The CLI login is what the MCP server reads.

### Claude Code

User config ~/.claude.json and project .mcp.json. You can also run claude mcp add podstack -- podstack mcp serve.

```
{
  "mcpServers": {
    "podstack": {
      "command": "podstack",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}
```

### Claude Desktop

macOS ~/Library/Application Support/Claude/claude_desktop_config.json. Linux ~/.config/Claude/claude_desktop_config.json. Windows %APPDATA%\Claude\claude_desktop_config.json.

```
{
  "mcpServers": {
    "podstack": {
      "command": "podstack",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}
```

### Codex

~/.codex/config.toml. Windows: %USERPROFILE%\.codex\config.toml.

```
[mcp_servers.podstack]
command = "podstack"
args = ["mcp", "serve"]
```

### Cursor

~/.cursor/mcp.json and the project .cursor/mcp.json.

```
{
  "mcpServers": {
    "podstack": {
      "command": "podstack",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}
```

One-click link: cursor://anysphere.cursor-deeplink/mcp/install?name=podstack&config=eyJhcmdzIjpbIm1jcCIsInNlcnZlIl0sImNvbW1hbmQiOiJwb2RzdGFjayJ9

### Gemini CLI

~/.gemini/settings.json. Windows: %USERPROFILE%\.gemini\settings.json.

```
{
  "mcpServers": {
    "podstack": {
      "command": "podstack",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}
```

### Grok

~/.podstack/mcp.json and the project .podstack/mcp.json.

```
{
  "mcpServers": {
    "podstack": {
      "command": "podstack",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}
```

</details>

## Podstack skills

These skills ship with the CLI and `podstack agent connect` installs them: podstack-provision-gpu, podstack-run-on-gpu, podstack-inference, podstack-fine-tune, podstack-cost-check. The fine-tune skill does not call a fine-tune API. It submits a training script as a job.

## Decision guide

- Use MCP when an agent in Claude, Cursor, Codex, Gemini, or Grok should call tools. Connect with `podstack agent connect`, then call the tools below. Billable tools need confirm:true only after the human agrees.
- Use the CLI when a person or a shell script should install, sign in, or run one command.
- Use the Python SDK when Python code should call the API, deploy a function, or stream chat. `pip install podstack` installs podstack 1.8.0 from PyPI: https://pypi.org/project/podstack/1.8.0/

## CLI command reference

This is the v1.2.0 command tree. `podstack --output json` prints JSON (the default when stdout is not a terminal). `podstack --output table` prints a table. `podstack version` and `podstack --version` print the version. `podstack upgrade` installs the latest release, or `--version vX.Y.Z` pins one. Set PODSTACK_DISABLE_UPDATE_CHECK=1 to skip the update nudge.

### Auth

- `podstack auth login` opens a browser (Google, GitHub, or SSO) and stores the token. It waits five minutes.
- `podstack auth login --key <token>` stores a key and skips the browser. `podstack auth login --manual` prompts for a pasted key. A non-TTY also prompts.
- Create a key at https://podstack.ai/app/api-keys. Keys use the ps_live_ prefix. A legacy psk_ key is still accepted. Other strings warn and are still stored.
- PODSTACK_API_KEY overrides the file. PODSTACK_API_BASE overrides the API base. The default base is https://podstack.ai/api/v1.
- Credentials file: $XDG_CONFIG_HOME/podstack/credentials.json, or ~/.config/podstack/credentials.json. On Windows that is %USERPROFILE%\.config\podstack\credentials.json when XDG_CONFIG_HOME is unset. Mode 0600. The file holds {"api_key":"..."}.
- Agent setup state is agent-setup.json in that same directory. Coding-agent settings are ~/.podstack/config.json and ./.podstack/config.json. Local coding-agent secret names live in ~/.podstack/secrets.json. Never put a key in a client MCP config.
- `podstack auth whoami` prints the signed-in account. `podstack auth logout` deletes the credentials file. To rotate a key, create a new one in the console, run login again, then logout on the old machine. `podstack account keys` reports not available: the console manages keys.

### Agent and MCP

- `podstack agent connect <claude|claude-desktop|codex|cursor|gemini|grok>` signs in if needed, merges MCP config, writes .podstack.bak beside each file, installs five skills, writes .podstack/AGENTS.md, and checks the handshake. `--all` does every client. `--dry-run` and `--print` print the plan, write nothing, and do not sign in.
- `podstack agent disconnect <agent>` restores the backups. `all` and `--all` disconnect every client. `podstack agent status` prints what is connected. `podstack agent welcome` prints the welcome text.
- `podstack mcp serve` is the stdio MCP server. `podstack mcp serve --http 127.0.0.1:8765` listens on HTTP.
- Skills installed by connect: podstack-provision-gpu, podstack-run-on-gpu, podstack-inference, podstack-fine-tune, podstack-cost-check. The fine-tune skill submits a training script as a job. It does not call a fine-tune API.

### GPUs, jobs, endpoints, functions

```
podstack gpu types list
podstack gpu pricing [--gpu-type T] [--region R] [--tier spot|on_demand]
podstack gpu templates
podstack gpu environments
podstack gpu launch [--gpu-type T] [--region R] [--tier spot|on_demand] [--name N]   # interactive terminal
podstack gpu keys list
podstack gpu keys create --name N [--public-key-file PATH] [--force]
podstack gpu keys delete <id>
podstack gpu instances list [--status S]
podstack gpu instances get <id>
podstack gpu instances create --type T [--count 1] [--tier on_demand] [--name N] [--region R] [--offering-id ID] [--environment ID] [--template ID] [--disk-gb N] [--ssh-key-id ID] [--max-price N] [--yes | --dry-run]
podstack gpu instances delete [id]          # with an id this terminates immediately; get approval first
podstack gpu instances ssh [id] [-- extra ssh args] [--print] [--no-banner] [--key NAME] [--identity PATH]
podstack gpu instances exec <id> -- <command...>
podstack gpu instances cp <src> <dst> [-r] [--key NAME] [--identity PATH]   # one side is <id>:<remote-path>
podstack gpu instances expose <id> <port> [--local PORT] [--remote-host localhost] [--key NAME] [--identity PATH]
podstack gpu instances stop <id>            # not available
podstack gpu instances start <id>           # not available
podstack gpu instances logs <id>            # not available
podstack jobs gpu-types
podstack jobs list [--status queued|running|succeeded|failed|cancelled]
podstack jobs submit --name N --gpu-type T --script PATH [--image pytorch/pytorch:latest] [--timeout 3600] [--yes | --dry-run]
podstack jobs logs <id>
podstack jobs cancel <id> --yes
podstack endpoints list
podstack endpoints create --name N --model M --gpu-type T [--min-replicas 0] [--max-replicas 1] [--yes | --dry-run]
podstack endpoints delete <id> --yes
podstack functions list                     # create a function from the Python SDK, not the CLI
podstack models list
podstack infer chat --model M --prompt TEXT [--system TEXT]
```

`--yes` and `--dry-run` cannot be combined. `jobs submit` and `endpoints create` refuse to spend money without `--yes`. `gpu instances create --dry-run` prints the request and does not launch. `gpu instances delete <id>` terminates as soon as the id is passed, so ask the human before you run it. `gpu instances exec` and `cp` use the local ssh and scp binaries. They are not an HTTP exec API. Prices and GPU ids come from `gpu pricing` and `gpu types list`. Do not invent a price.

### Projects, account, billing, files, and the coding agent

- `podstack projects` and `podstack projects list` list projects. `podstack projects use <id-or-name>` sets the default. `podstack projects create <name> [--description TEXT]` creates one and selects it. The default is saved in ~/.podstack/config.json. PODSTACK_PROJECT_ID overrides it for one run.
- `podstack account secrets list` lists project secret names. `podstack account secrets set --name N [--description TEXT] --yes` reads the value from `--value-file` or stdin. Values are write-only and never printed. `podstack account secrets delete <name> --yes` deletes one.
- `podstack secrets list`, `podstack secrets set NAME`, and `podstack secrets rm NAME` manage local names in ~/.podstack/secrets.json for the coding agent. Values stay on the machine.
- `podstack billing` and `podstack billing balance` call the wallet route. When that route is missing they report not available and point at https://podstack.ai/app/billing. Do not invent a balance.
- `podstack init` creates .podstack/PODSTACK.md and .podstack/plans/. `podstack doctor` checks credentials, the API, and local state.
- `podstack code` is the local coding agent (macOS and Linux). Flags: `-p` / `--prompt`, `--model`, `--provider` (a model-source alias in the local config, not a key), `--output-format text|json`, `--quiet`, `--allow-tools`, `--dangerously-allow-all`, `--yolo`, `-r` / `--resume`, `-c` / `--continue`, `--max-turns`. `podstack code sessions list` and `podstack code sessions delete <id>` manage sessions. Exit 0 is success, 1 is an error, 3 is a tool denied, 130 is interrupted.
- `podstack send [paths...]` sends files or `--text`. Flags: `--code`, `--zip`, `--no-compress`, `--transfers` (default 4). `podstack receive <code> [--out DIR] [--yes]`. Re-run the same command to resume.
- `podstack train` (create, list, get, cancel, events, models) and `podstack files upload` report not available. `podstack sandbox` (run, list, close, renew, logs, cost) reports not available on the current API. Use a GPU instance or a job instead.

## MCP tools

`podstack mcp serve` registers these 23 tools. Read-only tools need no confirm. These tools spend money or delete resources and require confirm:true, and only after the human agrees: create_instance, terminate_instance, submit_job, cancel_job, create_endpoint, delete_endpoint. Pass dry_run:true first on create_instance, submit_job, and create_endpoint. dry_run does not send the request and does not estimate a price. Read list_rates for price_per_hour.

- list_gpus. Read. Catalogue rows.
- list_rates. Read. Optional gpu_type, region, tier (spot or on_demand).
- create_instance. confirm. gpu_type or offering_id or template_id. Also gpu_count (default 1), tier, region, name, ssh_key_ids, environment, disk_gb.
- list_instances. Read. Optional status. get_instance. Read. id, including the SSH command.
- stop_instance and start_instance are registered and always return not available. Terminate, or launch a new instance.
- terminate_instance. confirm. Deletes the disk and stops the charge.
- exec_command. id and command. Runs over local SSH. The instance is already billed while it exists. upload_file (id, local_path, remote_path) and download_file (id, remote_path, local_path) also use SSH.
- list_models. Read. run_inference and chat take model, prompt, and optional system. On the CLI server they spend wallet credit and have no confirm argument, so still ask the human before calling them. chat is an alias of run_inference.
- balance. Read. Returns not available when the wallet route is missing.
- list_jobs. Read. Optional status. submit_job. confirm. name, gpu_type, script, optional image (default pytorch/pytorch:latest) and timeout_seconds (default 3600). cancel_job. confirm. id. job_logs. Read. id.
- list_functions. Read. It does not create a function. list_endpoints. Read. create_endpoint. confirm. name, model, gpu_type, min_replicas (0 scales to zero), max_replicas (default 1). delete_endpoint. confirm. id. An endpoint is billed while replicas exist.

## Python SDK

`pip install podstack` installs podstack 1.8.0 from PyPI: https://pypi.org/project/podstack/1.8.0/

Package name podstack. Python >=3.9. Install with `pip install podstack` from https://pypi.org/project/podstack/1.8.0/. Base URL https://podstack.ai/api/v1. Auth order: Podstack(api_key=...), then PODSTACK_API_KEY, then the CLI credentials file. The same ps_live_ and legacy psk_ prefixes apply. Override the base with base_url= or PODSTACK_API_BASE. AsyncPodstack has the same method names. The client repr redacts keys. `python -m podstack.mcp` and the podstack-mcp script serve the same tools. 1.8.0 replaces the older notebook SDK. There is no compatibility shim.

- client.me(). client.gpus.list(). client.rates.list(). client.job_gpus.list(). client.templates.list(). client.environments.get(). client.projects.list() and projects.create(name, description).
- client.ssh_keys.list(), create(name, public_key), delete(key_id, confirm=True). client.instances.list(status), get, create(..., confirm=True, dry_run=True), terminate(id, confirm=True), ssh_command, exec (local ssh), upload, download. client.operations.get.
- client.jobs.list, submit(..., confirm=True), cancel(id, confirm=True), logs. client.endpoints.list, create(..., confirm=True), delete(id, confirm=True).
- client.functions.list, get, deploy(..., confirm=True), invoke(..., confirm=True). functions.call and functions.logs raise NotAvailableYet when that route is missing. functions.delete(confirm=True).
- client.models.list and models.get. A missing model is NotFound, not NotAvailableYet. client.chat.completions(..., stream=False, confirm=True) and client.chat.stream(..., confirm=True). client.embeddings.create(confirm=True). client.images.generate(confirm=True).
- client.wallet.balance and wallet.transactions raise NotAvailableYet on 404. client.secrets.list, create, delete(confirm=True).
- The SDK also has fine_tuning.list, get, create, cancel, and events. The platform fine-tune API is not available yet. Do not call it. Submit a training script as a job.
- Decorator: @podstack.function(gpu, image="", requirements=, name=, timeout=3600, confirm=False). The function must be top-level in a file. Arguments must be JSON-serializable. deploy(dry_run=True) then deploy(confirm=True). invoke(confirm=True) and ainvoke(confirm=True). local() runs in-process and is free. Calling the function like a normal function raises ConfirmationRequired unless the decorator set confirm=True. logs() may raise NotAvailableYet. delete(confirm=True).
- Billable SDK calls that require confirm=True: instance create and terminate, job submit and cancel, endpoint create and delete, chat, embeddings, image generation, function deploy, invoke, and delete, secret delete, and SSH key delete. dry_run=True returns DryRun and sends nothing. Check dry_run before confirm. Do not estimate a price inside a dry run. Read rates.list() price_per_hour.
- Errors: PodstackError, AuthenticationError, PermissionDenied, NotFoundError, ValidationError, RateLimitError, InsufficientBalance, GPUNotAvailableError, NotAvailableYet, ConfirmationRequired, CommandFailed. Retries are for connection errors and HTTP 429 and 5xx only. InsufficientBalance means the wallet cannot cover the request. Do not invent a shortfall.

## Examples

Each recipe is the prompt a person gives, then the calls, then the result you should expect. Use a gpu_type and an id returned by a list call. Do not invent hardware or a price. Billable steps use dry_run first, then confirm:true or --yes only after the human approves. Matching example pages are not published on the docs site yet. These recipes are the reference, and each recipe will link to its docs page when that page exists.

### Connect and verify

Prompt: connect Claude Code to Podstack and show that it works.

```
podstack agent connect claude
podstack agent status
podstack auth whoami
```

Expected: status shows Claude Code connected, the handshake succeeded, other MCP servers were kept, and a .podstack.bak file sits beside each config. whoami prints the account email. The API key is not in the client config. `podstack agent connect --all` does the same for every supported client. `--dry-run` prints the plan and writes nothing.

### Check GPUs and live prices

Prompt: what GPUs can I rent, and what is the live price?

```
MCP: list_gpus
MCP: list_rates
podstack gpu types list
podstack gpu pricing
```

SDK (`pip install podstack`). client.gpus.list() and client.rates.list(). Expected: gpu_type, vram, region, and price_per_hour from the API only. If a field is missing, say so. These calls are read-only.

### Provision, SSH exec, terminate

Prompt: launch one GPU, run nvidia-smi, then shut it down.

```
MCP: list_rates
MCP: create_instance { gpu_type, gpu_count: 1, dry_run: true }
# after the human agrees:
MCP: create_instance { gpu_type, gpu_count: 1, confirm: true }
MCP: get_instance { id }
MCP: exec_command { id, command: "nvidia-smi" }
# after the human agrees:
MCP: terminate_instance { id, confirm: true }

podstack gpu instances create --type <gpu_type> --count 1 --dry-run
podstack gpu instances create --type <gpu_type> --count 1 --yes
podstack gpu instances exec <id> -- nvidia-smi
podstack gpu instances delete <id>
```

SDK (`pip install podstack`). instances.create(..., dry_run=True) then instances.create(..., confirm=True), instances.exec(id, "nvidia-smi"), instances.terminate(id, confirm=True). Expected: an instance id, then nvidia-smi output over SSH, then the disk deleted and billing stopped. Do not call stop_instance or start_instance. exec uses local SSH, not an HTTP exec API.

### Submit a job, read logs, cancel

Prompt: run this script on a GPU, show the logs, and cancel it if I say so.

```
podstack jobs gpu-types
podstack jobs submit --name train --gpu-type <gpu_type> --script ./train.py --dry-run
# after the human agrees:
podstack jobs submit --name train --gpu-type <gpu_type> --script ./train.py --yes
podstack jobs logs <id>
# after the human agrees:
podstack jobs cancel <id> --yes
```

MCP: submit_job with dry_run:true, then confirm:true after approval. job_logs is read-only. cancel_job needs confirm:true after approval. SDK (`pip install podstack`). jobs.submit(..., dry_run=True), then jobs.submit(..., confirm=True), jobs.logs(id), jobs.cancel(id, confirm=True). Expected: a job id, log text, and a cancelled job. There is no fine-tune API. A training script is a job.

### Deploy and invoke a function

Prompt: deploy this function and call it once.

The CLI only lists functions: `podstack functions list`. Creating one is the SDK. SDK (`pip install podstack`).

```
import podstack

@podstack.function(gpu=gpu_type, requirements=["torch"])
def hello():
    return "ok"

hello.deploy(dry_run=True)
# after the human agrees:
hello.deploy(confirm=True)
hello.invoke(confirm=True)
```

Expected: a dry-run body, then a deployed function, then the return value. hello.logs() may raise NotAvailableYet. The function must live in a file. Do not call it like a normal function unless the decorator set confirm=True.

### Create an endpoint and chat

Prompt: stand up an endpoint and send one chat message, then remove it.

```
MCP: create_endpoint { name, model, gpu_type, dry_run: true }
# after the human agrees:
MCP: create_endpoint { name, model, gpu_type, confirm: true }
# run_inference and chat spend credit and have no confirm argument on the CLI server.
# Ask the human, then:
MCP: chat { model, prompt }
podstack infer chat --model <model> --prompt "hello"
# after the human agrees:
MCP: delete_endpoint { id, confirm: true }
```

SDK (`pip install podstack`). chat.completions(model=..., messages=[...], confirm=True) and chat.stream(..., confirm=True). endpoints.create(..., dry_run=True) then confirm=True, then endpoints.delete(id, confirm=True). Expected: an endpoint id, one completion, then the endpoint deleted. min_replicas 0 scales to zero. The endpoint is billed while replicas exist.

### Tool calling

Prompt: give this chat model the Podstack tools.

SDK (`pip install podstack`). schemas = podstack.tools(). Use schemas["openai"], schemas["anthropic"], or schemas["mcp"]. Names match the CLI, including stop_instance and start_instance, which report not available. Do not rename tools. In the SDK, run_inference and chat also require confirm=true. On the CLI MCP server those two spend credit with no confirm argument, so still ask the human first.

### Wallet and cost

Prompt: what does this cost, and can the wallet cover it?

```
MCP: list_rates
MCP: balance
podstack billing
```

SDK (`pip install podstack`). client.rates.list() and client.wallet.balance(). Expected: price_per_hour from the API. If balance returns not available, or wallet.balance raises NotAvailableYet, say the wallet route is missing and send the human to https://podstack.ai/app/billing. Do not invent a balance. The podstack-cost-check skill reads rates before a spend.

### Cleanup

Prompt: stop everything I started and disconnect the agent.

```
MCP: list_instances
MCP: list_jobs
MCP: list_endpoints
# after the human agrees, for each id:
MCP: terminate_instance { id, confirm: true }
MCP: cancel_job { id, confirm: true }
MCP: delete_endpoint { id, confirm: true }
podstack gpu instances delete <id>
podstack jobs cancel <id> --yes
podstack endpoints delete <id> --yes
podstack agent disconnect claude
```

SDK (`pip install podstack`). instances.terminate, jobs.cancel, and endpoints.delete, each with confirm=True after approval. A function is removed with delete(confirm=True). Expected: each resource gone, billing stopped, and disconnect restores the .podstack.bak configs. There is no stop that keeps the disk.

## Not available yet

- Instance stop and start that keep the disk. `podstack gpu instances stop` and `start`, and the stop_instance and start_instance tools, report not available. Terminating the instance is the supported way to stop billing.
- An instance logs HTTP API and an instance exec HTTP API. `podstack gpu instances logs` reports not available. `podstack gpu instances exec` and exec_command use local SSH. Job logs (`podstack jobs logs` and job_logs) are a separate read.
- Dataset upload. `podstack files` and `podstack files upload` report not available.
- A fine-tune API. `podstack train` reports not available. Run a training script as a job. Do not call the SDK fine_tuning methods.
- Wallet GET is not proven. `podstack billing` and the balance tool return not available when the route is missing. Do not invent a balance. The console page is https://podstack.ai/app/billing.

## Rules for agents

- Confirm with the human before a billable action: provisioning a machine, running a job or a command on a GPU, calling inference, or anything else that spends wallet credit.
- Never expose an API key. Do not print a ps_live_ key, commit it, or put it in a log or a screenshot.
