Comparison
ai-gateway vs llm.ts
Verdict
Unverified catalog guidance: ai-gateway: ai-gateway from Ferro Labs supports over 30 LLMs with integrated caching, guardrails, A/B testing, and cost controls, making it ideal for managing multiple language models in a production environment. llm.ts: llm.ts is a TypeScript library for interacting with various Large Language Models via a unified API interface.
Markdown twin · ai-gateway alternatives · llm.ts alternatives
GraphCanon updated Oct 21, 2026
Trust & integrity
| Signal | ai-gateway | llm.ts |
|---|---|---|
| Maintenance | Very active (1d since push) As of Oct 21, 2026 · github_public_v1 | Dormant (1193d since push) As of Aug 15, 2026 · github_public_v1 |
| Provenance | Not a fork · Organization account As of Oct 21, 2026 · github_public_v1 | Not a fork · Personal account As of Aug 15, 2026 · github_public_v1 |
| OSV dependency advisories | Published findings As of Jul 15, 2026 · osv@v1 | No lockfile (source not queried) As of Jul 11, 2026 · osv@v1 |
| deps.dev advisories | Not queried deps.dev@v1 | Not queried deps.dev@v1 |
| OpenSSF Scorecard | Not queried openssf-scorecard@v1 | Not queried openssf-scorecard@v1 |
Tagline
- ai-gateway
- Unified AI Gateway for multiple LLMs with caching, guardrails, A/B testing, and cost controls
- llm.ts
- Call any LLM with a single API. Zero dependencies.
Stars
- ai-gateway
- 272
- llm.ts
- 214
Forks
- ai-gateway
- 38
- llm.ts
- 9
Open issues
- ai-gateway
- 67
- llm.ts
- 2
Language
- ai-gateway
- Go
- llm.ts
- TypeScript
Adopt for
- ai-gateway
- Unverified catalog guidance: ai-gateway from Ferro Labs supports over 30 LLMs with integrated caching, guardrails, A/B testing, and cost controls, making it ideal for managing multiple language models in a production environment.
- llm.ts
- Unverified catalog guidance: llm.ts is a TypeScript library for interacting with various Large Language Models via a unified API interface.
Persona
- ai-gateway
- -
- llm.ts
- -
Runtime
- ai-gateway
- -
- llm.ts
- -
License
- ai-gateway
- Apache-2.0 - a permissive free software license
- llm.ts
- MIT License - permissive license that is short and simple, allowing you to use the software in any project as long as this licensing information is retained
Last pushed
- ai-gateway
- Oct 19, 2026
- llm.ts
- May 9, 2023
Categories
- ai-gateway
- Inference & Serving, Model Training
- llm.ts
- LLM Frameworks, Model Training
Trust and health
Maintenance
- ai-gateway
- Very active (96%)
- llm.ts
- Dormant (18%)
Days since push
- ai-gateway
- 1d
- llm.ts
- 1193d
Open issues (recorded)
- ai-gateway
- 67
- llm.ts
- 2
Stars delta
- ai-gateway
- +16 (30d)
- llm.ts
- +1 (30d)
Open issues delta
- ai-gateway
- -1 (30d)
- llm.ts
- 0 (30d)
Owner type
- ai-gateway
- Organization
- llm.ts
- User
OSV dependency advisories
- ai-gateway
- Published findings
- llm.ts
- No lockfile (source not queried)
Full report
- ai-gateway
- Trust report
- llm.ts
- Trust report
Shared compatibility
- Node.js · ai-gateway: Documented Node.js runtime (not runtime-tested) · llm.ts: Node.js runtime
Choose ai-gateway if…
- ai-gateway is primarily Go; llm.ts is TypeScript.
- License: ai-gateway is Apache-2.0, llm.ts is MIT.
- Tags unique to ai-gateway: ai-gateway, litellm, llm-cost, llm-proxy.
- Also covers Inference & Serving.
- ai-gateway has Docker configuration in its repository.
- Unverified catalog guidance: When you need to integrate more than 30 different LLM services including OpenAI and Anthropic
When NOT to use ai-gateway
- Unverified catalog guidance: If your project only involves one or two LLMs which does not necessitate the gateway's broad compatibility features
- Unverified catalog guidance: For small-scale projects that do not require comprehensive cost analysis tools
- Unverified catalog guidance: When custom integration for specific guardrails is required, as ai-gateway offers generalized settings
Choose llm.ts if…
- llm.ts is primarily TypeScript; ai-gateway is Go.
- License: llm.ts is MIT, ai-gateway is Apache-2.0.
- Supports multiple providers including OpenAI, Cohere, and HuggingFace. Can be extended by opening a PR.
- Tags unique to llm.ts: ai, cohere, huggingface, llm.
- Also covers LLM Frameworks.
- Unverified catalog guidance: You need to interact with multiple LLM providers like OpenAI, Cohere, and HuggingFace through a single API.
When NOT to use llm.ts
- Unverified catalog guidance: If you require functionalities that are specific to one provider that are not yet unified or supported within the llm.ts framework.
- Unverified catalog guidance: For projects that aim to minimize dependencies, though llm.ts itself claims zero dependencies, its reliance on external LLM providers could indirectly introduce complexities.
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (ferro-labs/ai-gateway) · observed Oct 21, 2026
- GitHub forks (ferro-labs/ai-gateway) · observed Oct 21, 2026
- Last push (ferro-labs/ai-gateway) · observed Oct 19, 2026
- License file (Apache-2.0) · observed Oct 21, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 15, 2026
- GitHub stars (r2d4/llm.ts) · observed Sep 20, 2026
- GitHub forks (r2d4/llm.ts) · observed Sep 20, 2026
- Last push (r2d4/llm.ts) · observed May 9, 2023
- License file (MIT) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Jul 12, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
GitHub stars on cards: ai-gateway 272 · llm.ts 214 (synced Oct 21, 2026).
Common questions
- What is the difference between ai-gateway and llm.ts?
- ai-gateway: Unified AI Gateway for multiple LLMs with caching, guardrails, A/B testing, and cost controls. llm.ts: Call any LLM with a single API. Zero dependencies.. See the comparison table for recorded GitHub metadata and shared categories.
- When should I choose ai-gateway over llm.ts?
- For ai-gateway, compare these recorded points with llm.ts: ai-gateway is primarily Go; llm.ts is TypeScript; License: ai-gateway is Apache-2.0, llm.ts is MIT; Tags unique to ai-gateway: ai-gateway, litellm, llm-cost, llm-proxy; Also covers Inference & Serving; ai-gateway has Docker configuration in its repository; Unverified catalog guidance: When you need to integrate more than 30 different LLM services including OpenAI and Anthropic.
- When should I choose llm.ts over ai-gateway?
- For llm.ts, compare these recorded points with ai-gateway: llm.ts is primarily TypeScript; ai-gateway is Go; License: llm.ts is MIT, ai-gateway is Apache-2.0; Supports multiple providers including OpenAI, Cohere, and HuggingFace. Can be extended by opening a PR; Tags unique to llm.ts: ai, cohere, huggingface, llm; Also covers LLM Frameworks; Unverified catalog guidance: You need to interact with multiple LLM providers like OpenAI, Cohere, and HuggingFace through a single API.
- When should I avoid ai-gateway?
- Unverified catalog guidance: If your project only involves one or two LLMs which does not necessitate the gateway's broad compatibility features Unverified catalog guidance: For small-scale projects that do not require comprehensive cost analysis tools Unverified catalog guidance: When custom integration for specific guardrails is required, as ai-gateway offers generalized settings
- When should I avoid llm.ts?
- Unverified catalog guidance: If you require functionalities that are specific to one provider that are not yet unified or supported within the llm.ts framework. Unverified catalog guidance: For projects that aim to minimize dependencies, though llm.ts itself claims zero dependencies, its reliance on external LLM providers could indirectly introduce complexities.
- Is ai-gateway or llm.ts more popular on GitHub?
- ai-gateway has more recorded GitHub stars (272 vs 214). Stars measure visibility, not whether either tool fits your constraints.
- Which licenses are recorded for ai-gateway and llm.ts?
- ai-gateway: Apache-2.0. llm.ts: MIT. Check each repository's current license and terms before use. Public GitHub hosting alone does not establish open-source licensing.
- Where can I find alternatives to ai-gateway or llm.ts?
- GraphCanon lists candidates at ai-gateway alternatives and llm.ts alternatives (ai-gateway markdown twin, llm.ts markdown twin). The discovery order uses stored relationship proposals and shared categories; it is not a verified replacement ranking.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, ai-gateway or llm.ts?
- ai-gateway: Very active. llm.ts: Dormant. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for ai-gateway and llm.ts?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: ai-gateway trust report; llm.ts trust report.