HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
ClickHouse
ai-sdk-cpp
C++2025–2025
ClickHouse / ai-sdk-cpp

ai-sdk-cpp

The AI Toolkit for Modern C++. From the engineers at ClickHouse, ai-sdk-cpp is a free, open‑source library for building AI‑powered applications and agents.

3Distinct people
3Mentions
0Explicit recommenders
190GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

The AI Toolkit for Modern C++. From the engineers at ClickHouse, ai-sdk-cpp is a free, open‑source library for building AI‑powered applications and agents.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

  • vercel/ai · linked in 2 of the same discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 12:45:45 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day3 dated mentions

Observed mentions: 2025-06-29 12:52:42 UTC to 2025-07-22 19:34:31 UTC.

0122025-06-29 00:00:00 UTC to 2025-06-30 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 commentsJun 292025-06-30 00:00:00 UTC to 2025-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-01 00:00:00 UTC to 2025-07-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-02 00:00:00 UTC to 2025-07-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-03 00:00:00 UTC to 2025-07-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-04 00:00:00 UTC to 2025-07-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-05 00:00:00 UTC to 2025-07-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-06 00:00:00 UTC to 2025-07-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-07 00:00:00 UTC to 2025-07-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-08 00:00:00 UTC to 2025-07-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-09 00:00:00 UTC to 2025-07-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-10 00:00:00 UTC to 2025-07-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJul 102025-07-11 00:00:00 UTC to 2025-07-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-12 00:00:00 UTC to 2025-07-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-13 00:00:00 UTC to 2025-07-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-14 00:00:00 UTC to 2025-07-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-15 00:00:00 UTC to 2025-07-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-16 00:00:00 UTC to 2025-07-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-17 00:00:00 UTC to 2025-07-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-18 00:00:00 UTC to 2025-07-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-19 00:00:00 UTC to 2025-07-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-20 00:00:00 UTC to 2025-07-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-21 00:00:00 UTC to 2025-07-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-22 00:00:00 UTC to 2025-07-23 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 22

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 292025-06-29 00:00:00 UTC2025-06-30 00:00:00 UTC220
Jun 302025-06-30 00:00:00 UTC2025-07-01 00:00:00 UTC000
Jul 12025-07-01 00:00:00 UTC2025-07-02 00:00:00 UTC000
Jul 22025-07-02 00:00:00 UTC2025-07-03 00:00:00 UTC000
Jul 32025-07-03 00:00:00 UTC2025-07-04 00:00:00 UTC000
Jul 42025-07-04 00:00:00 UTC2025-07-05 00:00:00 UTC000
Jul 52025-07-05 00:00:00 UTC2025-07-06 00:00:00 UTC000
Jul 62025-07-06 00:00:00 UTC2025-07-07 00:00:00 UTC000
Jul 72025-07-07 00:00:00 UTC2025-07-08 00:00:00 UTC000
Jul 82025-07-08 00:00:00 UTC2025-07-09 00:00:00 UTC000
Jul 92025-07-09 00:00:00 UTC2025-07-10 00:00:00 UTC000
Jul 102025-07-10 00:00:00 UTC2025-07-11 00:00:00 UTC000
Jul 112025-07-11 00:00:00 UTC2025-07-12 00:00:00 UTC000
Jul 122025-07-12 00:00:00 UTC2025-07-13 00:00:00 UTC000
Jul 132025-07-13 00:00:00 UTC2025-07-14 00:00:00 UTC000
Jul 142025-07-14 00:00:00 UTC2025-07-15 00:00:00 UTC000
Jul 152025-07-15 00:00:00 UTC2025-07-16 00:00:00 UTC000
Jul 162025-07-16 00:00:00 UTC2025-07-17 00:00:00 UTC000
Jul 172025-07-17 00:00:00 UTC2025-07-18 00:00:00 UTC000
Jul 182025-07-18 00:00:00 UTC2025-07-19 00:00:00 UTC000
Jul 192025-07-19 00:00:00 UTC2025-07-20 00:00:00 UTC000
Jul 202025-07-20 00:00:00 UTC2025-07-21 00:00:00 UTC000
Jul 212025-07-21 00:00:00 UTC2025-07-22 00:00:00 UTC000
Jul 222025-07-22 00:00:00 UTC2025-07-23 00:00:00 UTC101

What Hacker News says

2 sources
cauchyk·Jun 29, 2025Submission

Show HN: A modern C++20 AI SDK (GPT‑4o, Claude 3.5, tool‑calling)

Hi all, I’m hacking on new features for the ClickHouse native client and wanted the same “just call the model” ergonomics JavaScript and Python now enjoy. It didn’t exist for modern C++, so I wrote one. ai‑sdk‑cpp (Apache‑2.0) gives you: - Unified calls to OpenAI (GPT‑4o) and Anthropic (Claude 3.5) with a single C++20 API. - Streaming, multi‑turn chat, error handling—all std::optional/std::variant, no macros. - Tool calling (function‑calling) so the model can hit real APIs; sync or async, runs in parallel. The tricky bit: C++ still lacks real reflection, so mapping plain functions → JSON schemas isn’t as automatic as, say, TypeScript decorators. I’d love fresh eyes on that part. Try the examples and tell me where it feels clunky. This is inspired by Vercel's AI SDK [1], and litellm [2]. Repo live here: https://github.com/ClickHouse/ai-s
Read the rest
56 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.