JSPM

@simplellm/opencode-provider

0.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q57229F
  • License MIT

SimpleLLM provider setup for OpenCode — one command, EU-hosted LLM inference

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-provider

This will:

  1. Fetch available models from SimpleLLM
  2. Ask for your API key (get one at app.simplellm.eu)
  3. Configure OpenCode with SimpleLLM as provider
  4. 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