KosmoKrator

analytics

SpeedCurve CLI for AI Agents

Use the SpeedCurve CLI from KosmoKrator to call SpeedCurve tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 6 read 1 write API key auth

SpeedCurve CLI Setup

SpeedCurve can be configured headlessly with `kosmokrator integrations:configure speedcurve`.

# 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 speedcurve --set api_key="$SPEEDCURVE_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor speedcurve --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key SPEEDCURVE_API_KEY Secret secret yes API Key
url SPEEDCURVE_URL URL url no API Base URL

Call SpeedCurve Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call speedcurve.speedcurve_list_sites '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:speedcurve speedcurve_list_sites '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs speedcurve --json
kosmo integrations:docs speedcurve.speedcurve_list_sites --json
kosmo integrations:schema speedcurve.speedcurve_list_sites --json
kosmo integrations:search "SpeedCurve" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to SpeedCurve.

speedcurve.speedcurve_list_sites

Read read

List all monitored sites in SpeedCurve. Returns site IDs, names, and URLs that you can use to query test results.

Parameters
none

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_list_sites '{}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_list_sites '{}' --json

speedcurve.speedcurve_get_site

Read read

Get detailed information about a specific SpeedCurve site, including its URLs, test settings, and latest test results.

Parameters
site_id

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_get_site '{"site_id":1}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_get_site '{"site_id":1}' --json

speedcurve.speedcurve_list_tests

Read read

List recent synthetic test results from SpeedCurve. Optionally filter by site, browser, or region.

Parameters
site_id, url_id, browser, region, days

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_list_tests '{"site_id":1,"url_id":1,"browser":"example_browser","region":"example_region","days":1}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_list_tests '{"site_id":1,"url_id":1,"browser":"example_browser","region":"example_region","days":1}' --json

speedcurve.speedcurve_get_test

Read read

Get detailed results for a specific SpeedCurve synthetic test run, including Core Web Vitals, filmstrip data, and waterfall metrics.

Parameters
test_id

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_get_test '{"test_id":1}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_get_test '{"test_id":1}' --json

speedcurve.speedcurve_list_deployments

Read read

List recent deployments in SpeedCurve and their performance impact. Shows how each deploy affected Core Web Vitals and load times.

Parameters
site_id, limit

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_list_deployments '{"site_id":1,"limit":1}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_list_deployments '{"site_id":1,"limit":1}' --json

speedcurve.speedcurve_create_deployment

Write write

Register a new deployment in SpeedCurve to trigger synthetic performance tests. Use this when deploying code changes to track their performance impact.

Parameters
site_id, note, detail

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_create_deployment '{"site_id":1,"note":"example_note","detail":"example_detail"}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_create_deployment '{"site_id":1,"note":"example_note","detail":"example_detail"}' --json

speedcurve.speedcurve_get_current_user

Read read

Get details about the currently authenticated SpeedCurve user. Useful for verifying API credentials and checking account information.

Parameters
none

Generic CLI call

kosmo integrations:call speedcurve.speedcurve_get_current_user '{}' --json

Provider shortcut

kosmo integrations:speedcurve speedcurve_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

speedcurve.speedcurve_list_sites

List all monitored sites in SpeedCurve. Returns site IDs, names, and URLs that you can use to query test results.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_list_sites --json
ParameterTypeRequiredDescription
No parameters.

speedcurve.speedcurve_get_site

Get detailed information about a specific SpeedCurve site, including its URLs, test settings, and latest test results.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_get_site --json
ParameterTypeRequiredDescription
site_id integer yes The SpeedCurve site ID.

speedcurve.speedcurve_list_tests

List recent synthetic test results from SpeedCurve. Optionally filter by site, browser, or region.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_list_tests --json
ParameterTypeRequiredDescription
site_id integer no Filter tests by site ID.
url_id integer no Filter tests by URL ID.
browser string no Filter by browser (e.g., "Chrome", "Firefox").
region string no Filter by region (e.g., "us-east-1", "eu-west-1").
days integer no Number of days of test history to return.

speedcurve.speedcurve_get_test

Get detailed results for a specific SpeedCurve synthetic test run, including Core Web Vitals, filmstrip data, and waterfall metrics.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_get_test --json
ParameterTypeRequiredDescription
test_id integer yes The SpeedCurve test ID.

speedcurve.speedcurve_list_deployments

List recent deployments in SpeedCurve and their performance impact. Shows how each deploy affected Core Web Vitals and load times.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_list_deployments --json
ParameterTypeRequiredDescription
site_id integer no Filter deployments by site ID.
limit integer no Maximum number of deployments to return.

speedcurve.speedcurve_create_deployment

Register a new deployment in SpeedCurve to trigger synthetic performance tests. Use this when deploying code changes to track their performance impact.

Operation
Write write
Schema command
kosmo integrations:schema speedcurve.speedcurve_create_deployment --json
ParameterTypeRequiredDescription
site_id integer yes The SpeedCurve site ID to deploy to.
note string no A description or note for this deployment (e.g., "Deploy v2.3.1 — new checkout flow").
detail string no Additional details about the deployment, such as a git commit SHA or changelog URL.

speedcurve.speedcurve_get_current_user

Get details about the currently authenticated SpeedCurve user. Useful for verifying API credentials and checking account information.

Operation
Read read
Schema command
kosmo integrations:schema speedcurve.speedcurve_get_current_user --json
ParameterTypeRequiredDescription
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.