KosmoKrator

data

arXiv CLI for AI Agents

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

arXiv CLI Setup

arXiv can be configured headlessly with `kosmokrator integrations:configure arxiv`.

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 arxiv --enable --read allow --write ask --json
kosmokrator integrations:doctor arxiv --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 arxiv.arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json
Provider shortcut
kosmo integrations:arxiv arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json

Discovery

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

Discovery commands
kosmo integrations:docs arxiv --json
kosmo integrations:docs arxiv.arxiv_search_papers --json
kosmo integrations:schema arxiv.arxiv_search_papers --json
kosmo integrations:search "arXiv" --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.

arxiv.arxiv_search_papers

Search arXiv papers using the official Atom API. Use arXiv query syntax such as all:electron, ti:"diffusion model", au:"Smith", cat:cs.AI, and boolean operators.

Read read
Parameters
search_query, id_list, start, max_results, sortBy, sortOrder
Generic call
kosmo integrations:call arxiv.arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json
Shortcut
kosmo integrations:arxiv arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json

arxiv.arxiv_get_papers

Retrieve arXiv paper metadata by one or more arXiv IDs.

Read read
Parameters
id_list
Generic call
kosmo integrations:call arxiv.arxiv_get_papers '{"id_list":"example_id_list"}' --json
Shortcut
kosmo integrations:arxiv arxiv_get_papers '{"id_list":"example_id_list"}' --json

arxiv.arxiv_search_by_author

Search arXiv papers by author name.

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

arxiv.arxiv_search_by_title

Search arXiv papers by title text.

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

arxiv.arxiv_search_by_category

Search recent arXiv papers by category code.

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

arxiv.arxiv_search_recent

Search arXiv with newest submissions first.

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

arxiv.arxiv_oai_identify

Read arXiv OAI-PMH repository metadata.

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

arxiv.arxiv_oai_list_metadata_formats

List OAI-PMH metadata formats supported by arXiv.

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

arxiv.arxiv_oai_list_sets

List arXiv OAI-PMH sets.

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

arxiv.arxiv_oai_list_identifiers

List OAI-PMH identifiers and datestamps.

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

arxiv.arxiv_oai_list_records

List OAI-PMH metadata records.

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

arxiv.arxiv_oai_get_record

Retrieve one OAI-PMH metadata record by identifier.

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

Function Schemas

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

arxiv.arxiv_search_papers 6 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_search_papers --json
ParameterTypeRequiredDescription
search_query string no arXiv search expression such as all:electron, ti:"transformer", au:"Smith", or cat:cs.AI.
id_list array no Optional arXiv IDs used alone or as a filter with search_query.
start integer no Zero-based offset of the first returned result.
max_results integer no Maximum results to return. arXiv recommends small slices for repeated calls.
sortBy string no Sort field.
sortOrder string no Sort direction.
arxiv.arxiv_get_papers 1 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_get_papers --json
ParameterTypeRequiredDescription
id_list array yes arXiv IDs such as 2103.15348 or 2103.15348v1.
arxiv.arxiv_search_by_author 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_search_by_author --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_search_by_title 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_search_by_title --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_search_by_category 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_search_by_category --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_search_recent 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_search_recent --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_identify 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_identify --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_list_metadata_formats 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_list_metadata_formats --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_list_sets 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_list_sets --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_list_identifiers 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_list_identifiers --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_list_records 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_list_records --json
ParameterTypeRequiredDescription
No parameters.
arxiv.arxiv_oai_get_record 0 parameters
Schema command
kosmo integrations:schema arxiv.arxiv_oai_get_record --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.