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'.

Getting started

Package details

AuthorTroy Hernandez [aut, cre] (ORCID: <https://orcid.org/0009-0005-4248-604X>), ellmer team [cph] (API design derived from ellmer)
MaintainerTroy Hernandez <troy@cornball.ai>
LicenseMIT + file LICENSE
Version0.1.1
URL https://github.com/cornball-ai/llm.api
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("llm.api")

Try the llm.api package in your browser

Any scripts or data that you put into this service are public.

llm.api documentation built on April 16, 2026, 5:08 p.m.