Skip to content

aisdk

Unified Interface for AI Model Providers

v1.4.12 · Jun 1, 2026 · MIT + file LICENSE

Description

A production-grade AI toolkit for R featuring a layered architecture (Specification, Utilities, Providers, Core), request interception support, robust error handling with exponential retry delays, support for multiple AI model providers ('OpenAI', 'Anthropic', etc.), local small language model inference, distributed 'MCP' ecosystem, multi-agent orchestration, progressive knowledge loading through skills, and a global skill store for sharing AI capabilities.

Downloads

CRAN

15.7K

Last 30 days

937th

35.3K

Last 90 days

35.5K

Last year

Trend: +0.8% (30d vs prior 30d)

r2u CRAN

326

Last 30 days

688

Last 90 days

692

Last year

Trend: -3.6% (30d vs prior 30d)

autoCRAN

12

Last 7 days

62

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 2, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE May 30, 2026
ERROR r-devel-linux-x86_64-fedora-clang

tests

Running ‘test_providers_manual.R’
  Running ‘testthat.R’ [173s/531s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
...[truncated]...
: [B] dynamic-dispatch console_chat() still aborts via subprocess marker ──
  Expected `elapsed` < 5.
  Actual comparison: 7.5 >= 5.0
  Difference: 2.5 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 53 | PASS 7964 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘test_providers_manual.R’
  Running ‘testthat.R’ [233s/597s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
...[truncated]...
: [B] dynamic-dispatch console_chat() still aborts via subprocess marker ──
  Expected `elapsed` < 5.
  Actual comparison: 7.0 >= 5.0
  Difference: 2.0 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 53 | PASS 7964 ]
  Error:
  ! Test failures.
  Execution halted
OK 7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 1, 2026

Code

Structure

Lines of code

74,654

Files

480

Compiled share

0%

Has compiled src

No

Language breakdown

R 42,307 (56.7%)Tests 17,013 (22.8%)Docs 15,334 (20.5%)

API

Exported functions

215

Internal functions

640

Recent export changes

v1.4.12+7 api_endpoint_urls, finalize_image_artifacts, materialize_image_upload +4 more
v1.4.10+78 CaptureRenderer, GenerateImageResult, ImageModelV1 +75 more  −96 AgentTeam, AiHubMixProvider, BailianProvider 93 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.40

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

84.7%

\dontrun example ratio

75.4%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

24

Dep constraint coverage

0%

Secret pattern count

2

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2026-03-31

Latest release

2026-06-02

Avg cadence

3 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v1.1.0: 61,310 LOCv1.4.10: 74,363 LOCv1.4.11: 74,367 LOCv1.4.12: 74,654 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies R6 httr2 jsonlite rlang yaml callr processx memoise digest base64enc curl aisdk.providers aisdk

Version History

4 tracked
updated 1.4.12 ← 1.4.11 diff Jun 2, 2026
updated 1.4.11 ← 1.4.10 diff May 30, 2026
updated 1.4.10 ← 1.1.0 diff May 29, 2026
new 1.1.0 Mar 31, 2026