golem-add-llm-ts

Integrate LLM chat and embeddings into TypeScript Golem agents via fetch.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-llm-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-add-llm-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-add-llm-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-llm-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you add AI capabilities to a TypeScript Golem agent without relying on native bindings, so you can build features like chat, embeddings, and provider integrations quickly.

Core Features & Use Cases

  • Fetch-based provider compatibility: Use third-party npm LLM SDKs that work with fetch (Golem’s TypeScript runtime supports WASI HTTP), avoiding runtime incompatibilities.
  • Multi-provider support: Integrate major vendors such as OpenAI and Anthropic, plus other fetch-based SDKs for popular model providers.
  • Direct REST calls when needed: Call any LLM provider endpoint via fetch, and handle responses in your agent code.
  • Durable request behavior: All HTTP requests made from agent code are automatically durably persisted by Golem.

Quick Start

Use the golem-add-llm-ts skill to add OpenAI chat to your TypeScript Golem agent and store your API key as a secret.

Frequently Asked Questions about golem-add-llm-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add LLM chat capabilities to a TypeScript Golem agent?

You can add LLM capabilities by calling provider endpoints directly via fetch or using fetch-compatible npm SDKs within your agent, storing API keys as Golem secrets for secure authentication.

Can I use OpenAI and Anthropic SDKs with Golem's TypeScript runtime?

Yes, you can use OpenAI and Anthropic SDKs if they are fetch-compatible, because the Golem TypeScript runtime supports WASI HTTP, ensuring native fetch-based requests work without runtime incompatibilities.

Does Golem persist HTTP requests made to LLM provider APIs?

Golem automatically persists all HTTP requests made from your agent code, ensuring durable request behavior for LLM calls and maintaining state reliability during provider integrations.

How do I securely manage API keys when integrating LLM providers in Golem?

You manage API keys securely by storing them as Golem secrets, which are then referenced within your TypeScript agent to authenticate fetch-based requests to LLM providers.

What is the best way to generate embeddings in a TypeScript agent?

The best way to generate embeddings is to use fetch-based provider SDKs or direct REST calls within your Golem agent, leveraging WASI HTTP support to handle model responses durably.

Why do native LLM libraries cause runtime incompatibilities in Golem?

Native LLM libraries cause incompatibilities because they rely on Node.js APIs, whereas Golem's TypeScript runtime requires fetch-compatible SDKs using WASI HTTP for successful execution.