golemcloud/golem/golem-add-llm-rust
- community
Checking that the SKILL.md file is still in the repository.
Adds provider-backed AI capabilities to a Rust Golem agent. Use for LLMs, embeddings, search, vector or graph databases, speech, video, or code execution.
Install
npx vskill@latest install golemcloud/golem/golem-add-llm-rustSKILL.md
Add AI capabilities to a Rust agent
The golemcloud/golem-ai project provides provider-neutral core crates and provider crates. Golem agents now target wasm32-wasip2 and WASI HTTP 0.3, so dependency selection matters.
Select matching dependencies
Create a Rust application with golem new --yes --template rust ai-agent. Add the core and provider dependencies to the component's Cargo.toml. This example uses the v0.5.4 source with its matching SDK:
Keep the default golem features enabled. The application and provider must use the same SDK; check cargo tree -d for duplicate SDK versions. For a local SDK build, use the source-checkout instructions below instead. Build from the application directory with golem build --yes and keep the resulting lockfile.
Configure and call OpenAI
The provider exports OpenAiHostConfig (a ConfigSchema) and OpenAiConfig (the runtime config). Inject Config<OpenAiHostConfig> through the constructor. Converting the loaded host config keeps the secret handle; the provider reveals it immediately before each request. Do not cache plaintext.
Provision the apiKey secret in the deployment environment, using the hidden prompt rather than putting a credential in the manifest or shell history:
Set the optional provider URL config explicitly in golem.yaml:
Regular config uses the Rust field name base_url; the secret path is apiKey. Replace the example proxy URL with a reachable OpenAI-compatible endpoint.
Build, deploy, and call chat with a model available to the provider account. Check the returned domain error separately from invocation failure. For streaming, use LlmProvider::stream and the upstream chat-stream interface. Before production use, verify provider requests, secret rotation, and recovery.
Authoritative API references at the pinned revision: provider config, provider implementation, request model.
Available crate families
Choose one core crate and the provider crate needed by the application:
| Capability | Core crate | Providers | |
|---|---|---|---|
| LLM chat | golem-ai-llm | Anthropic, Bedrock, Grok, Ollama, OpenAI, OpenRouter | |
| Embeddings/reranking | golem-ai-embed | Cohere, Hugging Face, OpenAI, VoyageAI | |
| Web search | golem-ai-web-search | Brave, Google, Serper, Tavily | |
| Document search | golem-ai-search | Algolia, Elasticsearch, Meilisearch, OpenSearch, Typesense | |
| Graph database | golem-ai-graph | ArangoDB, JanusGraph, Neo4j | |
| Vector database | golem-ai-vector | Milvus, pgvector, Pinecone, Qdrant | |
| Video | golem-ai-video | Kling, Runway, Stability, Veo | |
| Speech-to-text | golem-ai-stt | AWS, Azure, Deepgram, Google, Whisper | |
| Text-to-speech | golem-ai-tts | AWS, Deepgram, ElevenLabs, Google | |
| Code execution | golem-ai-exec | JavaScript and Python execution |
The repository also contains golem-ai-http, the shared WASI HTTP transport. Provider crate names follow golem-ai-<capability>-<provider>.
Direct HTTP alternative
For a provider without a suitable adapter, call its HTTPS API with golem_rust::http as described by golem-make-http-request-rust. Store credentials with Golem secrets; load golem-add-secret-rust for provisioning.
Use a local SDK checkout
When targeting Golem's development SDK, clone golemcloud/golem-ai at the revision above. In the provider workspace's [workspace.dependencies], replace golem-rust with { path = "/absolute/path/to/golem/sdks/rust/golem-rust" }. Point the application at the same SDK and provider checkout:
Change the provider workspace dependency directly: a crates.io patch to the development SDK's 0.0.0 version does not satisfy the provider's =3.0.0-rc5 requirement.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolem-skills/skills/rust/golem-add-llm-rust/SKILL.md
Popularity
- Repository stars
- 1,521
- Repository forks
- 210
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/golemcloud/golem/golem-add-llm-rust)