Skip to content

LLM Resources

AI โ€‹

ProviderKeyNotes
GeminiGEMINI_API_KEY
OpenAIOPENAI_API_KEY
ClaudeANTHROPIC_API_KEY
GrokXAI_API_KEY
OllamanoneRuns entirely on your machine โ€” nothing leaves it
OpenClawnoneA local Gateway supplies the model, the key and the embeddings โ€” see OpenClaw
MocknoneDeterministic and offline, so the whole library is testable

Retries with exponential backoff on transient failures, a response cache so ten plugins reacting to one sensor tick don't fire ten paid requests, and structured output with schema coercion โ€” plugins receive objects with guaranteed keys, never prose to regex.

js
const result = await plant.analyze( 'Does this plant need repotting?', {
  schema : { advice : '', urgency : 'low', potSizeCm : 0 },
} )
// result.advice, result.urgency and result.potSizeCm are always present

Register any other backend in three lines:

js
plant.ai.registerProvider( 'my-llm', {
  generate : async ( { prompt, system } ) => callMyModel( system, prompt ),
} )