Package Exports
- @simplellm/opencode-provider
- @simplellm/opencode-provider/package.json
Readme
@simplellm/opencode-provider
Set up SimpleLLM as an LLM provider for OpenCode in one command.
Quick Start
npx @simplellm/opencode-providerThis will:
- Fetch available models from SimpleLLM
- Ask for your API key (get one at app.simplellm.eu)
- Configure OpenCode with SimpleLLM as provider
- Store your API key in OpenCode's auth store
Plugin
The package also exports an OpenCode plugin that shows your credit balance on session start:
{
"plugins": ["@simplellm/opencode-provider"]
}Programmatic Usage
import { discoverModels, SimpleLLMPlugin } from '@simplellm/opencode-provider'
// Fetch available models
const models = await discoverModels()
// Use the plugin
const plugin = await SimpleLLMPlugin()Environment Variables
| Variable | Description |
|---|---|
SIMPLELLM_BASE_URL |
Override API endpoint (default: https://api.simplellm.eu) |
SIMPLELLM_API_KEY |
API key (also stored in OpenCode auth) |
What is SimpleLLM?
EU-hosted LLM inference. GDPR-compliant, no data leaves Europe. Self-hosted models, no third-party API proxying.
License
MIT