KosmoKrator

data

SEC EDGAR CLI for AI Agents

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

SEC EDGAR CLI Setup

SEC EDGAR can be configured headlessly with `kosmokrator integrations:configure sec-edgar`.

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 sec-edgar --enable --read allow --write ask --json
kosmokrator integrations:doctor sec-edgar --json
kosmokrator integrations:status --json

Credentials

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

No credentials are required.

Command Patterns

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

Generic CLI call
kosmo integrations:call sec-edgar.sec_edgar_submissions '{}' --json
Provider shortcut
kosmo integrations:sec-edgar sec_edgar_submissions '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs sec-edgar --json
kosmo integrations:docs sec-edgar.sec_edgar_submissions --json
kosmo integrations:schema sec-edgar.sec_edgar_submissions --json
kosmo integrations:search "SEC EDGAR" --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.

sec-edgar.sec_edgar_submissions

Retrieve current public filing history for a CIK.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_submissions '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_submissions '{}' --json

sec-edgar.sec_edgar_submission_file

Retrieve an additional paginated submissions JSON file.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_submission_file '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_submission_file '{}' --json

sec-edgar.sec_edgar_company_facts

Retrieve all standardized XBRL company facts for a CIK.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_company_facts '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_company_facts '{}' --json

sec-edgar.sec_edgar_company_concept

Retrieve one taxonomy concept across filings for a CIK.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_company_concept '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_company_concept '{}' --json

sec-edgar.sec_edgar_frames

Retrieve an XBRL frame across reporting entities.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_frames '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_frames '{}' --json

sec-edgar.sec_edgar_company_tickers

Retrieve SEC CIK, ticker, and company-title mappings.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_company_tickers '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_company_tickers '{}' --json

sec-edgar.sec_edgar_company_tickers_exchange

Retrieve SEC CIK, ticker, exchange, and company-title mappings.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_company_tickers_exchange '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_company_tickers_exchange '{}' --json

sec-edgar.sec_edgar_bulk_archives

Return official SEC bulk archive ZIP URLs.

Read read
Parameters
none
Generic call
kosmo integrations:call sec-edgar.sec_edgar_bulk_archives '{}' --json
Shortcut
kosmo integrations:sec-edgar sec_edgar_bulk_archives '{}' --json

Function Schemas

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

sec-edgar.sec_edgar_submissions 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_submissions --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_submission_file 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_submission_file --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_company_facts 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_company_facts --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_company_concept 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_company_concept --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_frames 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_frames --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_company_tickers 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_company_tickers --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_company_tickers_exchange 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_company_tickers_exchange --json
ParameterTypeRequiredDescription
No parameters.
sec-edgar.sec_edgar_bulk_archives 0 parameters
Schema command
kosmo integrations:schema sec-edgar.sec_edgar_bulk_archives --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.