analytics
Helicone CLI for AI Agents
Use the Helicone CLI from KosmoKrator to call Helicone tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Helicone CLI Setup
Helicone can be configured headlessly with `kosmokrator integrations:configure helicone`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure helicone --set api_key="$HELICONE_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor helicone --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | HELICONE_API_KEY | Secret secret | yes | API Key |
api_url | HELICONE_API_URL | URL url | no | Observability API URL |
gateway_url | HELICONE_GATEWAY_URL | URL url | no | AI Gateway URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call helicone.helicone_query_requests '{}' --json kosmo integrations:helicone helicone_query_requests '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs helicone --json
kosmo integrations:docs helicone.helicone_query_requests --json
kosmo integrations:schema helicone.helicone_query_requests --json
kosmo integrations:search "Helicone" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
helicone.helicone_query_requests
Query Helicone request analytics with the ClickHouse endpoint.
read - Parameters
- none
kosmo integrations:call helicone.helicone_query_requests '{}' --json kosmo integrations:helicone helicone_query_requests '{}' --json helicone.helicone_query_requests_by_ids
Fetch request rows by explicit Helicone request IDs.
read - Parameters
- none
kosmo integrations:call helicone.helicone_query_requests_by_ids '{}' --json kosmo integrations:helicone helicone_query_requests_by_ids '{}' --json helicone.helicone_get_request
Retrieve a single Helicone request by ID.
read - Parameters
- none
kosmo integrations:call helicone.helicone_get_request '{}' --json kosmo integrations:helicone helicone_get_request '{}' --json helicone.helicone_submit_feedback
Submit positive or negative user feedback for a request.
write - Parameters
- none
kosmo integrations:call helicone.helicone_submit_feedback '{}' --json kosmo integrations:helicone helicone_submit_feedback '{}' --json helicone.helicone_query_user_metrics
Query Helicone user metrics.
read - Parameters
- none
kosmo integrations:call helicone.helicone_query_user_metrics '{}' --json kosmo integrations:helicone helicone_query_user_metrics '{}' --json helicone.helicone_query_user_metrics_overview
Query Helicone user metrics overview.
read - Parameters
- none
kosmo integrations:call helicone.helicone_query_user_metrics_overview '{}' --json kosmo integrations:helicone helicone_query_user_metrics_overview '{}' --json helicone.helicone_list_gateway_models
List AI Gateway models.
read - Parameters
- none
kosmo integrations:call helicone.helicone_list_gateway_models '{}' --json kosmo integrations:helicone helicone_list_gateway_models '{}' --json helicone.helicone_gateway_chat_completions
Create an OpenAI-compatible AI Gateway chat completion.
write - Parameters
- none
kosmo integrations:call helicone.helicone_gateway_chat_completions '{}' --json kosmo integrations:helicone helicone_gateway_chat_completions '{}' --json helicone.helicone_gateway_responses
Create an OpenAI-compatible AI Gateway Responses API response.
write - Parameters
- none
kosmo integrations:call helicone.helicone_gateway_responses '{}' --json kosmo integrations:helicone helicone_gateway_responses '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
helicone.helicone_query_requests 0 parameters
kosmo integrations:schema helicone.helicone_query_requests --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_query_requests_by_ids 0 parameters
kosmo integrations:schema helicone.helicone_query_requests_by_ids --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_get_request 0 parameters
kosmo integrations:schema helicone.helicone_get_request --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_submit_feedback 0 parameters
kosmo integrations:schema helicone.helicone_submit_feedback --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_query_user_metrics 0 parameters
kosmo integrations:schema helicone.helicone_query_user_metrics --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_query_user_metrics_overview 0 parameters
kosmo integrations:schema helicone.helicone_query_user_metrics_overview --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_list_gateway_models 0 parameters
kosmo integrations:schema helicone.helicone_list_gateway_models --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_gateway_chat_completions 0 parameters
kosmo integrations:schema helicone.helicone_gateway_chat_completions --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
helicone.helicone_gateway_responses 0 parameters
kosmo integrations:schema helicone.helicone_gateway_responses --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.