golem-add-llm-ts
Skill by golemcloud
Adds LLM chat, embeddings and AI provider integrations to a TypeScript Golem agent. Covers direct REST calls with fetch, OpenAI and Anthropic SDK examples, and storing API keys as secrets.
Install golem-add-llm-ts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/golemcloud/golem /tmp/golem && mkdir -p ~/.claude/skills && cp -r /tmp/golem/golem-skills/skills/ts/golem-add-llm-ts ~/.claude/skills/golem-add-llm-tsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/golemcloud/golem /tmp/golem && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/golem/golem-skills/skills/ts/golem-add-llm-ts ~/.gemini/antigravity-cli/skills/golem-add-llm-tsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to add LLM chat, embeddings and other AI provider integrations to a TypeScript Golem agent. It shows how to call a provider's REST API with fetch, or use a provider's npm SDK such as openai or @anthropic-ai/sdk. It also covers storing API keys as Golem secrets using the typed config system, and gives a complete chat agent example.
The source warns that fetch working does not establish that an SDK works in Golem, since SDKs can use unsupported runtime APIs. Developers should build and test the exact package version in Golem before relying on it. Libraries needing native C/C++ bindings will not work. The skill is aimed at developers building TypeScript agents that call LLM APIs.
Written from the project's SKILL.md and checked against it.
What it can do
- Direct REST callsShows how to call an LLM provider's REST API with fetch.
- OpenAI SDK exampleShows usage of the official openai npm package.
- Anthropic SDK exampleShows usage of the official @anthropic-ai/sdk npm package.
- Other provider SDKsLists candidate SDKs for Google AI, Cohere, Mistral and Groq.
- API key secretsStores provider API keys as Golem secrets through the typed config system.
- Chat agent exampleProvides a TypeScript agent that keeps chat history and answers questions.
What you need
- A TypeScript Golem agent
- An API key from the LLM provider
- npm to install provider SDKs
Try asking
- Add an OpenAI chat method to my TypeScript Golem agent
- Store my Anthropic API key as a secret in my Golem agent
- Call an LLM REST API with fetch from my TypeScript agent
Good to know
- Package examples are starting points, not tested compatibility guarantees.
- Libraries that depend on native C/C++ bindings will not work.
- Model availability must be confirmed for your account.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: golem-skills/skills/ts/golem-add-llm-ts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to golem-add-llm-ts
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
golem-add-llm-ts: common questions
Can I use the OpenAI SDK in a Golem agent?
The skill shows an openai example but says the exact package version must be built and tested in Golem first. SDKs can depend on runtime APIs that Golem does not support.
Where should provider API keys be stored?
The skill says to store them as Golem secrets using the typed config system with s.secret. The value is read with config.apiKey.get() inside a handler.
Which kinds of libraries will not work?
Libraries that depend on native C/C++ bindings, such as onnxruntime-node, will not work with this approach.
How do I install golem-add-llm-ts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is golem-add-llm-ts free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is golem-add-llm-ts safe to use?
It scores 66 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to golem-add-llm-ts?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
