KosmoKrator

productivity

Cerebras CLI for AI Agents

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

Cerebras CLI Setup

Cerebras can be configured headlessly with `kosmokrator integrations:configure cerebras`.

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 cerebras --set api_key="$CEREBRAS_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor cerebras --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.

KeyEnv varTypeRequiredLabel
api_key CEREBRAS_API_KEY Secret secret yes API Key
base_url CEREBRAS_BASE_URL URL url no API Base URL

Command Patterns

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

Generic CLI call
kosmo integrations:call cerebras.cerebras_cancel_batch '{}' --json
Provider shortcut
kosmo integrations:cerebras cerebras_cancel_batch '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs cerebras --json
kosmo integrations:docs cerebras.cerebras_cancel_batch --json
kosmo integrations:schema cerebras.cerebras_cancel_batch --json
kosmo integrations:search "Cerebras" --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.

cerebras.cerebras_cancel_batch

Cerebras Cancel Batch

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

cerebras.cerebras_chat_completions

Cerebras Chat Completions

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

cerebras.cerebras_completions

Cerebras Completions

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

cerebras.cerebras_create_batch

Cerebras Create Batch

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

cerebras.cerebras_delete_file

Cerebras Delete File

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

cerebras.cerebras_delete_model_version

Cerebras Delete Model Version

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

cerebras.cerebras_deploy_model_to_endpoint

Cerebras Deploy Model To Endpoint

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

cerebras.cerebras_list_batches

Cerebras List Batches

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

cerebras.cerebras_list_endpoints

Cerebras List Endpoints

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

cerebras.cerebras_list_files

Cerebras List Files

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

cerebras.cerebras_list_model_architectures

Cerebras List Model Architectures

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

cerebras.cerebras_list_model_versions

Cerebras List Model Versions

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

cerebras.cerebras_list_models

Cerebras List Models

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

cerebras.cerebras_list_public_models

Cerebras List Public Models

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

cerebras.cerebras_retrieve_batch

Cerebras Retrieve Batch

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

cerebras.cerebras_retrieve_endpoint_status

Cerebras Retrieve Endpoint Status

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

cerebras.cerebras_retrieve_file

Cerebras Retrieve File

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

cerebras.cerebras_retrieve_file_content

Cerebras Retrieve File Content

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

cerebras.cerebras_retrieve_metrics

Cerebras Retrieve Metrics

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

cerebras.cerebras_retrieve_model

Cerebras Retrieve Model

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

cerebras.cerebras_retrieve_model_version_status

Cerebras Retrieve Model Version Status

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

cerebras.cerebras_retrieve_public_model

Cerebras Retrieve Public Model

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

cerebras.cerebras_update_model_version_aliases

Cerebras Update Model Version Aliases

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

cerebras.cerebras_upload_file

Cerebras Upload File

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

cerebras.cerebras_upload_model_version

Cerebras Upload Model Version

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

Function Schemas

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

cerebras.cerebras_cancel_batch 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_cancel_batch --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_chat_completions 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_chat_completions --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_completions 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_completions --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_create_batch 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_create_batch --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_delete_file 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_delete_file --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_delete_model_version 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_delete_model_version --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_deploy_model_to_endpoint 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_deploy_model_to_endpoint --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_batches 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_batches --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_endpoints 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_endpoints --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_files 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_files --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_model_architectures 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_model_architectures --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_model_versions 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_model_versions --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_models 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_models --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_list_public_models 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_list_public_models --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_batch 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_batch --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_endpoint_status 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_endpoint_status --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_file 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_file --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_file_content 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_file_content --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_metrics 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_metrics --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_model 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_model --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_model_version_status 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_model_version_status --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_retrieve_public_model 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_retrieve_public_model --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_update_model_version_aliases 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_update_model_version_aliases --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_upload_file 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_upload_file --json
ParameterTypeRequiredDescription
No parameters.
cerebras.cerebras_upload_model_version 0 parameters
Schema command
kosmo integrations:schema cerebras.cerebras_upload_model_version --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.