Skip to content

AI Features

OpenBin's AI features are fully optional. They require connecting your own API key or having an admin configure a server-wide key. Without an AI key, all other features work normally.

Supported Providers

ProviderNotes
OpenAIGPT-4o, GPT-4.1, GPT-5, and other OpenAI models
AnthropicClaude Haiku, Sonnet, and Opus models
Google GeminiGemini 2.0 Flash, 2.5 Flash/Pro, and other Gemini models
OpenAI-compatibleAny endpoint following the OpenAI API format (e.g. Ollama, LM Studio, OpenRouter)

Getting an API Key

Each provider requires its own API key. Sign up and create one from their developer platform:

Per-User Setup

  1. Go to Settings → AI.
  2. Select your provider.
  3. Enter your API key (see Getting an API Key above).
  4. Select or type the model name (see Recommended Models for suggestions).
  5. For OpenAI-compatible endpoints, enter the endpoint URL.
  6. Click Save.

AI features activate immediately after saving.

Server-Wide Setup (Admin)

Admins can configure a shared AI key via environment variables so all users get AI features without individual setup:

ini
AI_PROVIDER=openai
AI_API_KEY=sk-...
AI_MODEL=gpt-4o
# For OpenAI-compatible endpoints:
AI_ENDPOINT_URL=https://your-endpoint.example.com/v1

Users can still configure their own keys in Settings → AI, which takes precedence over the server-wide key.

INFO

Set AI_ENCRYPTION_KEY to an AES-256-GCM key to encrypt stored API keys at rest. Without this, keys are stored as plaintext in the database.

Photo Analysis

  1. Open a bin → Photos tab.
  2. Upload a photo of the bin's contents.
  3. Tap Analyze with AI.
  4. Review the AI's suggestions: bin name, items list, tags, and notes.
  5. Apply any or all suggestions — each field can be accepted or dismissed independently.

Photo analysis is useful for quickly populating a bin's metadata from a single photo without typing everything manually.

Natural Language Commands

The AI command bar (accessible from the bin list) accepts natural language instructions:

Add screwdriver to the tools bin
Move batteries to the garage area
Create a bin called Holiday Decorations with items: lights, ornaments, wrapping paper
Remove the extension cord from the electrical bin

OpenBin interprets the command, shows a preview of the action it will take, and asks for confirmation before making any changes.

Ask natural language questions to search across all bins:

Where did I put the holiday lights?
Which bins have batteries?
What's in the attic?
Do I have any sandpaper?

OpenBin searches your bins and returns matching results with an explanation of why each bin matched.

Custom Prompts

Advanced users can override the default AI prompts for each operation:

  1. Go to Settings → AI → Advanced.
  2. Enter a custom prompt for photo analysis, commands, search queries, or text structuring.
  3. Save.

Custom prompts are useful for domain-specific terminology, non-English languages, or specialized inventory contexts.

TIP

Leave a custom prompt field blank to use the built-in default for that operation.

Temperature and Token Settings

The advanced AI settings section exposes fine-tuning parameters:

ParameterEffect
TemperatureControls randomness. Lower = more deterministic. Range: 0.0–2.0
Max tokensCaps the response length.
Top-pNucleus sampling probability. Lower = more focused output.
Request timeoutSeconds to wait before aborting an AI request.

These settings apply per provider configuration.

  • Bulk Add — Create multiple bins from photos using AI
  • Photos — Attach and manage bin photos
  • Configuration — Server-wide AI environment variables

Released under the GPL-3.0 License.