---
title: "Run a smoke test to verify the selected AI CLI works in the environment where agents will actually execute (host or sandbox container). If no `provider_id` is supplied the globally active provider is tested."
method: POST
path: "/projects/{project_id}/agents/smoke-test"
tags: ["Agents"]
---

# Run a smoke test to verify the selected AI CLI works in the environment where agents will actually execute (host or sandbox container). If no \`provider_id\` is supplied the globally active provider is tested.

`POST /projects/{project_id}/agents/smoke-test`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/agents/smoke-test`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Query parameters

- `provider_id` string

## Response `200`

Smoke test result for the AI CLI in the agent's execution environment

- SmokeTestResponse
  - `auth_info` string, nullable: Auth email / method
  - `cli_authenticated` boolean, required: Claude CLI authenticated?
  - `cli_installed` boolean, required: Claude CLI installed?
  - `cli_version` string, nullable: Claude CLI version
  - `detail` string, nullable: Full output for debugging
  - `environment` string, required: Where the test ran: "host" or "sandbox"
  - `passed` boolean, required: Whether the smoke test passed
  - `setup_hint` string, nullable: What the user needs to do if the test failed

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/agents/smoke-test/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
