KosmoKrator

marketing

Autopilot CLI for AI Agents

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

7 functions 6 read 1 write API key auth

Autopilot CLI Setup

Autopilot can be configured headlessly with `kosmokrator integrations:configure autopilot`.

# 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 autopilot --set api_key="$AUTOPILOT_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor autopilot --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 AUTOPILOT_API_KEY Secret secret yes API Key
url AUTOPILOT_URL URL url no API Base URL

Call Autopilot Headlessly

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

kosmo integrations:call autopilot.autopilot_list_contacts '{
  "limit": 1,
  "bookmark": "example_bookmark"
}' --json

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

kosmo integrations:autopilot autopilot_list_contacts '{
  "limit": 1,
  "bookmark": "example_bookmark"
}' --json

Agent Discovery Commands

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

kosmo integrations:docs autopilot --json
kosmo integrations:docs autopilot.autopilot_list_contacts --json
kosmo integrations:schema autopilot.autopilot_list_contacts --json
kosmo integrations:search "Autopilot" --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 Autopilot.

autopilot.autopilot_list_contacts

Read read

List contacts in your Autopilot account. Returns contact IDs, emails, and names.

Parameters
limit, bookmark

Generic CLI call

kosmo integrations:call autopilot.autopilot_list_contacts '{"limit":1,"bookmark":"example_bookmark"}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_list_contacts '{"limit":1,"bookmark":"example_bookmark"}' --json

autopilot.autopilot_get_contact

Read read

Get detailed information about a specific Autopilot contact by ID or email address.

Parameters
contact_id

Generic CLI call

kosmo integrations:call autopilot.autopilot_get_contact '{"contact_id":"example_contact_id"}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_get_contact '{"contact_id":"example_contact_id"}' --json

autopilot.autopilot_create_contact

Write write

Create or update a contact in Autopilot. Requires an email address; other fields are optional.

Parameters
email, first_name, last_name, phone, title, company, custom_fields

Generic CLI call

kosmo integrations:call autopilot.autopilot_create_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","phone":"example_phone","title":"example_title","company":"example_company","custom_fields":"example_custom_fields"}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_create_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","phone":"example_phone","title":"example_title","company":"example_company","custom_fields":"example_custom_fields"}' --json

autopilot.autopilot_list_lists

Read read

List all lists in your Autopilot account. Returns list IDs and titles.

Parameters
none

Generic CLI call

kosmo integrations:call autopilot.autopilot_list_lists '{}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_list_lists '{}' --json

autopilot.autopilot_get_list

Read read

Get detailed information about a specific Autopilot list, including contacts.

Parameters
list_id

Generic CLI call

kosmo integrations:call autopilot.autopilot_get_list '{"list_id":"example_list_id"}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_get_list '{"list_id":"example_list_id"}' --json

autopilot.autopilot_list_journeys

Read read

List all journeys in your Autopilot account. Returns journey IDs and names.

Parameters
none

Generic CLI call

kosmo integrations:call autopilot.autopilot_list_journeys '{}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_list_journeys '{}' --json

autopilot.autopilot_get_current_user

Read read

Get the authenticated user's Autopilot account details.

Parameters
none

Generic CLI call

kosmo integrations:call autopilot.autopilot_get_current_user '{}' --json

Provider shortcut

kosmo integrations:autopilot autopilot_get_current_user '{}' --json

Function Schemas

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

autopilot.autopilot_list_contacts

List contacts in your Autopilot account. Returns contact IDs, emails, and names.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_list_contacts --json
ParameterTypeRequiredDescription
limit integer no Number of contacts to return (default: 50, max: 100).
bookmark string no Pagination bookmark from a previous response.

autopilot.autopilot_get_contact

Get detailed information about a specific Autopilot contact by ID or email address.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_get_contact --json
ParameterTypeRequiredDescription
contact_id string yes The contact ID or email address.

autopilot.autopilot_create_contact

Create or update a contact in Autopilot. Requires an email address; other fields are optional.

Operation
Write write
Schema command
kosmo integrations:schema autopilot.autopilot_create_contact --json
ParameterTypeRequiredDescription
email string yes The contact's email address.
first_name string no The contact's first name.
last_name string no The contact's last name.
phone string no The contact's phone number.
title string no The contact's job title.
company string no The contact's company name.
custom_fields object no Custom field key-value pairs for the contact.

autopilot.autopilot_list_lists

List all lists in your Autopilot account. Returns list IDs and titles.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_list_lists --json
ParameterTypeRequiredDescription
No parameters.

autopilot.autopilot_get_list

Get detailed information about a specific Autopilot list, including contacts.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_get_list --json
ParameterTypeRequiredDescription
list_id string yes The list ID.

autopilot.autopilot_list_journeys

List all journeys in your Autopilot account. Returns journey IDs and names.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_list_journeys --json
ParameterTypeRequiredDescription
No parameters.

autopilot.autopilot_get_current_user

Get the authenticated user's Autopilot account details.

Operation
Read read
Schema command
kosmo integrations:schema autopilot.autopilot_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.