productivity
ReadMe CLI for AI Agents
Use the ReadMe CLI from KosmoKrator to call ReadMe tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.ReadMe CLI Setup
ReadMe can be configured headlessly with `kosmokrator integrations:configure readme`.
# 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 readme --set api_token="$README_API_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor readme --json
kosmokrator integrations:status --json Credentials
Authentication type: API token api_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_token | README_API_TOKEN | Secret secret | yes | API Token |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call readme.readme_get_project_metadata '{}' --json kosmo integrations:readme readme_get_project_metadata '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs readme --json
kosmo integrations:docs readme.readme_get_project_metadata --json
kosmo integrations:schema readme.readme_get_project_metadata --json
kosmo integrations:search "ReadMe" --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.
readme.readme_get_project_metadata
Get metadata for the current ReadMe project.
read - Parameters
- none
kosmo integrations:call readme.readme_get_project_metadata '{}' --json kosmo integrations:readme readme_get_project_metadata '{}' --json readme.readme_list_api_keys
List API keys for a project subdomain.
read - Parameters
- subdomain
kosmo integrations:call readme.readme_list_api_keys '{"subdomain":"example_subdomain"}' --json kosmo integrations:readme readme_list_api_keys '{"subdomain":"example_subdomain"}' --json readme.readme_list_branches
List ReadMe branches.
read - Parameters
- none
kosmo integrations:call readme.readme_list_branches '{}' --json kosmo integrations:readme readme_list_branches '{}' --json readme.readme_get_branch
Get one ReadMe branch.
read - Parameters
- none
kosmo integrations:call readme.readme_get_branch '{}' --json kosmo integrations:readme readme_get_branch '{}' --json readme.readme_list_categories
List categories in a branch section.
read - Parameters
- none
kosmo integrations:call readme.readme_list_categories '{}' --json kosmo integrations:readme readme_list_categories '{}' --json readme.readme_get_category
Get one category in a branch section.
read - Parameters
- none
kosmo integrations:call readme.readme_get_category '{}' --json kosmo integrations:readme readme_get_category '{}' --json readme.readme_list_category_pages
List pages within a category.
read - Parameters
- none
kosmo integrations:call readme.readme_list_category_pages '{}' --json kosmo integrations:readme readme_list_category_pages '{}' --json readme.readme_get_guide
Get a guide page by slug.
read - Parameters
- none
kosmo integrations:call readme.readme_get_guide '{}' --json kosmo integrations:readme readme_get_guide '{}' --json readme.readme_get_reference
Get an API reference page by slug.
read - Parameters
- none
kosmo integrations:call readme.readme_get_reference '{}' --json kosmo integrations:readme readme_get_reference '{}' --json readme.readme_list_api_definitions
List API definitions.
read - Parameters
- none
kosmo integrations:call readme.readme_list_api_definitions '{}' --json kosmo integrations:readme readme_list_api_definitions '{}' --json readme.readme_get_api_definition
Get one API definition.
read - Parameters
- api_id
kosmo integrations:call readme.readme_get_api_definition '{"api_id":"example_api_id"}' --json kosmo integrations:readme readme_get_api_definition '{"api_id":"example_api_id"}' --json readme.readme_search_docs
Search ReadMe docs using the documented legacy search endpoint.
read - Parameters
- none
kosmo integrations:call readme.readme_search_docs '{}' --json kosmo integrations:readme readme_search_docs '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
readme.readme_get_project_metadata 0 parameters
kosmo integrations:schema readme.readme_get_project_metadata --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_list_api_keys 1 parameters
kosmo integrations:schema readme.readme_list_api_keys --json | Parameter | Type | Required | Description |
|---|---|---|---|
subdomain | string | yes | ReadMe project subdomain. |
readme.readme_list_branches 0 parameters
kosmo integrations:schema readme.readme_list_branches --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_get_branch 0 parameters
kosmo integrations:schema readme.readme_get_branch --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_list_categories 0 parameters
kosmo integrations:schema readme.readme_list_categories --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_get_category 0 parameters
kosmo integrations:schema readme.readme_get_category --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_list_category_pages 0 parameters
kosmo integrations:schema readme.readme_list_category_pages --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_get_guide 0 parameters
kosmo integrations:schema readme.readme_get_guide --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_get_reference 0 parameters
kosmo integrations:schema readme.readme_get_reference --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_list_api_definitions 0 parameters
kosmo integrations:schema readme.readme_list_api_definitions --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
readme.readme_get_api_definition 1 parameters
kosmo integrations:schema readme.readme_get_api_definition --json | Parameter | Type | Required | Description |
|---|---|---|---|
api_id | string | yes | ReadMe API definition ID. |
readme.readme_search_docs 0 parameters
kosmo integrations:schema readme.readme_search_docs --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.