KosmoKrator

productivity

Buildkite CLI for AI Agents

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

Buildkite CLI Setup

Buildkite can be configured headlessly with `kosmokrator integrations:configure buildkite`.

Install, configure, and verify
# 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 buildkite --set access_token="$BUILDKITE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor buildkite --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token BUILDKITE_ACCESS_TOKEN Secret secret yes Access Token
url BUILDKITE_URL Text text no API URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call buildkite.buildkite_get_current_user '{}' --json
Provider shortcut
kosmo integrations:buildkite buildkite_get_current_user '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs buildkite --json
kosmo integrations:docs buildkite.buildkite_get_current_user --json
kosmo integrations:schema buildkite.buildkite_get_current_user --json
kosmo integrations:search "Buildkite" --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.

buildkite.buildkite_get_current_user

Get authenticated Buildkite user details.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_current_user '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_current_user '{}' --json

buildkite.buildkite_list_organizations

List organizations accessible to the token.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_list_organizations '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_list_organizations '{}' --json

buildkite.buildkite_get_organization

Get one organization by slug.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_organization '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_organization '{}' --json

buildkite.buildkite_list_pipelines

List pipelines in an organization.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_list_pipelines '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_list_pipelines '{}' --json

buildkite.buildkite_get_pipeline

Get one pipeline by slug.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_pipeline '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_pipeline '{}' --json

buildkite.buildkite_create_pipeline

Create a Buildkite pipeline.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_create_pipeline '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_create_pipeline '{}' --json

buildkite.buildkite_update_pipeline

Update a Buildkite pipeline.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_update_pipeline '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_update_pipeline '{}' --json

buildkite.buildkite_archive_pipeline

Archive a pipeline.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_archive_pipeline '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_archive_pipeline '{}' --json

buildkite.buildkite_unarchive_pipeline

Unarchive a pipeline.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_unarchive_pipeline '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_unarchive_pipeline '{}' --json

buildkite.buildkite_list_builds

List builds for a pipeline.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_list_builds '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_list_builds '{}' --json

buildkite.buildkite_get_build

Get one build by number.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_build '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_build '{}' --json

buildkite.buildkite_create_build

Trigger a new build.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_create_build '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_create_build '{}' --json

buildkite.buildkite_cancel_build

Cancel a build.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_cancel_build '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_cancel_build '{}' --json

buildkite.buildkite_rebuild_build

Rebuild a build by number.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_rebuild_build '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_rebuild_build '{}' --json

buildkite.buildkite_retry_failed_jobs

Retry failed jobs for a build.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_retry_failed_jobs '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_retry_failed_jobs '{}' --json

buildkite.buildkite_get_job_log

Get log output for a build job.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_job_log '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_job_log '{}' --json

buildkite.buildkite_get_job_environment

Get environment variables for a build job.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_get_job_environment '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_get_job_environment '{}' --json

buildkite.buildkite_api_get

Call a safe relative Buildkite GET path.

Read read
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_api_get '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_api_get '{}' --json

buildkite.buildkite_api_post

Call a safe relative Buildkite POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_api_post '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_api_post '{}' --json

buildkite.buildkite_api_put

Call a safe relative Buildkite PUT path.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_api_put '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_api_put '{}' --json

buildkite.buildkite_api_patch

Call a safe relative Buildkite PATCH path.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_api_patch '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_api_patch '{}' --json

buildkite.buildkite_api_delete

Call a safe relative Buildkite DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call buildkite.buildkite_api_delete '{}' --json
Shortcut
kosmo integrations:buildkite buildkite_api_delete '{}' --json

Function Schemas

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

buildkite.buildkite_get_current_user 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_list_organizations 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_list_organizations --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_get_organization 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_organization --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_list_pipelines 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_list_pipelines --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_get_pipeline 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_pipeline --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_create_pipeline 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_create_pipeline --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_update_pipeline 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_update_pipeline --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_archive_pipeline 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_archive_pipeline --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_unarchive_pipeline 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_unarchive_pipeline --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_list_builds 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_list_builds --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_get_build 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_build --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_create_build 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_create_build --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_cancel_build 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_cancel_build --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_rebuild_build 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_rebuild_build --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_retry_failed_jobs 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_retry_failed_jobs --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_get_job_log 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_job_log --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_get_job_environment 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_get_job_environment --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_api_get 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_api_get --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_api_post 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_api_post --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_api_put 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_api_put --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_api_patch 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_api_patch --json
ParameterTypeRequiredDescription
No parameters.
buildkite.buildkite_api_delete 0 parameters
Schema command
kosmo integrations:schema buildkite.buildkite_api_delete --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.