llm.api: Minimal LLM Chat Interface

A minimal-dependency client for Large Language Model chat APIs. Supports 'OpenAI' <https://github.com/openai>, 'Anthropic' 'Claude' <https://claude.com/>, 'Moonshot' 'Kimi' <https://www.moonshot.ai/>, 'Ollama' <https://ollama.com/>, and other 'OpenAI'-compatible endpoints. Includes an agent loop with tool use and a 'Model Context Protocol' client <https://modelcontextprotocol.io/>. API design is derived from the 'ellmer' package, reimplemented with only base R, 'curl', and 'jsonlite'.

Version: 0.1.1
Imports: curl, jsonlite
Suggests: tinytest
Published: 2026-04-16
DOI: 10.32614/CRAN.package.llm.api (may not be active yet)
Author: Troy Hernandez ORCID iD [aut, cre], ellmer team [cph] (API design derived from ellmer)
Maintainer: Troy Hernandez <troy at cornball.ai>
BugReports: https://github.com/cornball-ai/llm.api/issues
License: MIT + file LICENSE
URL: https://github.com/cornball-ai/llm.api
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: llm.api results

Documentation:

Reference manual: llm.api.html , llm.api.pdf

Downloads:

Package source: llm.api_0.1.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=llm.api to link to this page.