PromptHub
Developer Tools Self-Hosted Applications

Stop Manually Cataloging Inventory! Use Homebox Companion Instead

B

Bright Coding

Author

15 min read
6 views
Stop Manually Cataloging Inventory! Use Homebox Companion Instead

Stop Manually Cataloging Inventory! Use Homebox Companion Instead

Let me guess: you've got boxes stacked in your garage, a storage unit you can't remember the contents of, or a small business inventory that lives in chaotic spreadsheets. Every time you need to find something, it's twenty minutes of digging. And if you've ever tried to catalog it all? Hours of tedious data entry, blurry phone photos with meaningless filenames, and the creeping dread that you'll never finish.

Here's the brutal truth: manual inventory management is a productivity killer. Studies show knowledge workers lose up to 30% of their time searching for information. For physical inventory, that number feels conservative. But what if you could point your phone at a shelf, snap a photo, and have AI instantly identify, describe, and catalog every item—complete with manufacturer details, serial numbers, and purchase prices?

That's not science fiction. That's Homebox Companion, and it's about to transform how you think about inventory management forever.

Built as an unofficial but powerful companion to the open-source Homebox inventory system, Homebox Companion leverages cutting-edge AI vision models to eliminate the grunt work of inventory tracking. No more typing. No more guessing. Just snap, review, and done. Ready to reclaim your weekends? Let's dive into why developers and home organizers alike are rushing to deploy this tool.


What Is Homebox Companion?

Homebox Companion is an AI-powered web application that extends the capabilities of Homebox, the popular self-hosted inventory management system. Created by developer Duelion and released as an open-source project under the GNU General Public License v3.0, this tool bridges the gap between physical clutter and digital organization through the power of modern computer vision.

At its core, Homebox Companion solves a deceptively simple problem: getting data into your inventory system shouldn't be harder than the inventory itself. Traditional approaches force you to manually create entries, type descriptions, hunt for serial numbers, and upload photos one by one. Homebox Companion inverts this workflow entirely. You take photos—single items, entire shelves, even rooms—and GPT-5's multimodal capabilities do the heavy lifting.

The project is trending now for three converging reasons. First, the release of GPT-5 mini and nano has made AI vision shockingly affordable at roughly $0.30 per 100 items. Second, the self-hosted and privacy-conscious community is exploding, with users rejecting cloud-locked SaaS solutions in favor of tools they control. Third, Homebox itself has matured into a robust inventory platform, creating perfect conditions for ecosystem tools like Companion to thrive.

Importantly, this is not an official Homebox project. It's a third-party companion built with clean integration patterns, respecting Homebox's API while adding capabilities the core project doesn't pursue. This unofficial status actually benefits users—faster iteration, experimental features, and a focused mission on AI-powered ingestion rather than trying to be everything to everyone.


Key Features That Make It Irresistible

AI-Powered Detection with Real Intelligence

Homebox Companion doesn't just tag objects—it understands context. The system identifies multiple items in a single photo, extracts manufacturer and model information, reads serial numbers from labels, and even captures pricing data from receipts. The AI suggests relevant tags from your existing Homebox tag library, maintaining consistency across your inventory. Multi-language support means it works globally, not just for English-speaking users.

Multi-Image Analysis for Precision

Here's where it gets clever: multiple angles improve accuracy dramatically. Snap a photo of the front, another of the label, maybe one of the receipt. The AI correlates these images, building a complete picture that single-photo systems miss. For collections or sets, "single-item mode" forces the AI to treat multiple photos as one logical unit—perfect for board games, tool kits, or bundled electronics.

AI Corrections and Conversational Refinement

The AI got something wrong? Tell it. The correction system accepts natural language feedback—"that's actually a 2023 model, not 2022"—and re-analyzes accordingly. This iterative refinement loop means the system improves with your corrections, learning your specific inventory patterns.

Location Intelligence

Browse hierarchical location trees, search by name, or scan Homebox QR codes to instantly set the correct destination. Create new locations on-the-fly during capture sessions. The location management feels native because it is—direct API integration with your Homebox instance means zero data sync issues.

Customizable AI Output

Every field is configurable. Want formal product names? Casual descriptions? Specific quantity formats? Set custom instructions per field, define naming examples, or establish default tags for bulk operations. The AI adapts to your organizational standards, not generic defaults.

The Chat Assistant: Your Inventory Co-Pilot

This is where Homebox Companion transcends mere automation and becomes genuinely intelligent. A conversational interface with 21 integrated tools lets you query, modify, and manage inventory through natural language. Ask "How many items do I have in the garage?" and get instant answers. Request "Move all electronics to the office shelf" and review the AI's proposed changes before confirming.

The tool system is carefully permissioned: read operations execute automatically, write operations require your approval, and destructive actions need explicit confirmation. Streaming responses provide real-time feedback, so you're never waiting blindly for AI operations to complete.


Use Cases Where Homebox Companion Dominates

Home Organization and Moving

Packing for a move? Walk through each room with your phone. Thirty minutes of photography replaces weekends of spreadsheet torture. The AI catalogs furniture dimensions (from visual estimation), electronics specs, and box contents. At your new home, search "blender" and know exactly which box to open. The stress reduction is immeasurable.

Small Business Inventory

Retail shops, repair businesses, and makerspaces face a constant influx of parts and products. Homebox Companion turns receiving into a five-minute photo session rather than an hour of data entry. Serial number tracking for warranty management, price extraction from invoices, and automatic tag suggestions based on product categories streamline operations dramatically.

Collectibles and Insurance Documentation

Wine collections, vintage electronics, art, tools—valuable items need documentation. The AI extracts provenance details from labels, captures condition through visual analysis, and generates comprehensive records. For insurance claims, this level of documentation can mean the difference between full replacement value and frustrating disputes.

Lab and Workshop Management

Research labs, makerspaces, and repair benches accumulate components that defy simple categorization. The AI identifies electronic components, mechanical parts, and chemical supplies from photos, extracting part numbers and specifications that humans struggle to locate. No more mystery drawers of unlabeled components.

Estate and Downsizing Management

Handling a family member's possessions or downsizing a lifetime of accumulation? The emotional weight is heavy enough without logistical nightmares. Homebox Companion accelerates documentation, helps identify items for appraisal, and creates searchable records for family distribution decisions.


Step-by-Step Installation & Setup Guide

Prerequisites

Before deploying, ensure you have:

  • An OpenAI API key — Generate at platform.openai.com
  • A Homebox instance — Your own server running v0.21+, or use the demo server for testing
  • Docker and Docker Compose — For containerized deployment

Compatibility Note: Tested with Homebox v0.21+. Earlier versions may exhibit different authentication behavior.

Quick Demo (No Homebox Required)

Want to experience the interface before full commitment? Run against the public demo server:

docker run -p 8000:8000 \
  -e HBC_LLM_API_KEY=sk-your-key \
  -e HBC_HOMEBOX_URL=https://demo.homebox.software \
  ghcr.io/duelion/homebox-companion:latest

Access at http://localhost:8000 and authenticate with:

  • Username: demo@example.com
  • Password: demo

Important: AI Chat functionality is disabled in demo mode for security reasons.

Production Docker Compose Deployment

Create a docker-compose.yml file:

# docker-compose.yml
services:
  homebox-companion:
    image: ghcr.io/duelion/homebox-companion:latest
    container_name: homebox-companion
    restart: always
    environment:
      - HBC_LLM_API_KEY=sk-your-api-key-here
      - HBC_HOMEBOX_URL=http://your-homebox-ip:7745
    ports:
      - 8000:8000

Deploy with a single command:

docker compose up -d

Navigate to http://localhost:8000 to begin.

Docker Networking Tip: If Homebox runs on the same host machine but outside Docker's network, use http://host.docker.internal:PORT as the URL instead of localhost.

ARM64/Raspberry Pi: Images are multi-architecture, supporting both linux/amd64 and linux/arm64 natively.

Essential Environment Configuration

Variable Required Description
HBC_LLM_API_KEY Yes Your OpenAI API key
HBC_HOMEBOX_URL No Homebox instance URL (defaults to demo)
HBC_LINK_BASE_URL No Public URL for Homebox links in chat

For complete configuration options including rate limiting, image quality, security settings, and AI customization, reference the project's .env.example file.


REAL Code Examples from the Repository

Example 1: Docker Compose Production Configuration

The repository provides this complete docker-compose.yml for immediate deployment:

# docker-compose.yml
services:
  homebox-companion:
    image: ghcr.io/duelion/homebox-companion:latest
    container_name: homebox-companion
    restart: always
    environment:
      - HBC_LLM_API_KEY=sk-your-api-key-here
      - HBC_HOMEBOX_URL=http://your-homebox-ip:7745
    ports:
      - 8000:8000

What's happening here? This defines a single service using the latest published image from GitHub Container Registry. The restart: always policy ensures the container recovers from host reboots or crashes. Environment variables inject your secrets and configuration without hardcoding sensitive data. Port mapping exposes the internal FastAPI application on your host's port 8000. For production, consider adding volume mounts for persistent logs and reverse proxy configuration behind nginx or Traefik.

Example 2: Local Model Configuration for Privacy-First Deployment

For users wanting complete data sovereignty, the README documents local model integration through Ollama:

HBC_LLM_API_KEY=any-value-works-for-local  # Just needs to be non-empty
HBC_LLM_API_BASE=http://localhost:11434     # Your local server URL
HBC_LLM_MODEL=ollama/llava:34b              # Your local model name
HBC_LLM_ALLOW_UNSAFE_MODELS=true            # Required for most local models

Critical implementation details: The HBC_LLM_API_KEY must be non-empty even though local models don't authenticate—this is a validation requirement in the application code. The ollama/ prefix is LiteLLM's convention for routing to Ollama-compatible endpoints. The llava:34b model provides vision capabilities necessary for photo analysis, though accuracy lags significantly behind GPT-5 mini. Setting HBC_LLM_ALLOW_UNSAFE_MODELS=true bypasses capability validation that would otherwise reject unverified models.

Important limitation: Most vision-capable local models lack function calling support, meaning they'll work for photo scanning but not for the AI Chat assistant. The README explicitly warns about this trade-off. For full functionality with local deployment, you'd need a model supporting both vision and tool execution—currently rare in the open-weights ecosystem.

Example 3: Rate Limiting Configuration for High-Volume Usage

The project includes sophisticated rate limiting tuned to OpenAI's tier system:

# Default conservative settings (80% of Tier 1 limits)
HBC_RATE_LIMIT_ENABLED=true
HBC_RATE_LIMIT_RPM=400
HBC_RATE_LIMIT_TPM=400000
HBC_RATE_LIMIT_BURST_MULTIPLIER=1.5

# Tier 2 example
HBC_RATE_LIMIT_RPM=4000
HBC_RATE_LIMIT_TPM=1600000

# Tier 3 example  
HBC_RATE_LIMIT_RPM=4000
HBC_RATE_LIMIT_TPM=3200000

Why this matters: Uncontrolled API usage can trigger OpenAI rate limits, causing cascading failures in batch operations. The default settings provide headroom for Tier 1 accounts. The burst multiplier allows temporary spikes above sustained limits—useful when processing photo batches where analysis happens in parallel. Adjust these based on your actual OpenAI tier to maximize throughput without hitting hard limits.

Example 4: CORS Security Hardening for Production

The README emphasizes production security through explicit CORS configuration:

# Allow only your frontend domain
HBC_CORS_ORIGINS=https://inventory.example.com

# Multiple origins (comma-separated)
HBC_CORS_ORIGINS=https://inventory.example.com,https://admin.example.com

Security context: The default HBC_CORS_ORIGINS=* permits cross-origin requests from any domain—convenient for development, dangerous for production. This example demonstrates restricting to specific trusted origins, preventing malicious websites from making authenticated requests to your Homebox Companion instance. Combined with the built-in authentication rate limiting (HBC_AUTH_RATE_LIMIT_RPM=10) and chat rate limiting (HBC_CHAT_RATE_LIMIT_RPM=20), these settings form a defense-in-depth strategy for internet-facing deployments.


Advanced Usage & Best Practices

Optimize Your Photo Workflow

Batch aggressively. The AI analyzes up to 30 images in parallel, so capturing 20 items feels faster per-item than capturing 5. Include receipts in frame—the AI extracts purchase price, retailer, and date automatically. For electronics and appliances, always capture the label with model and serial numbers; the OCR capabilities are remarkably accurate on clear images.

HTTPS Deployment for Full Feature Access

Native QR code scanning requires HTTPS due to browser security restrictions for camera access. On HTTP deployments, the application gracefully degrades to a "Take Photo" fallback, but workflow speed suffers. Use Let's Encrypt or your preferred certificate authority for production deployments.

Custom Field Power-User Patterns

The AI customization environment variables enable sophisticated extraction pipelines. Define HBC_AI_SERIAL_NUMBER with instructions like "Extract only the alphanumeric code following 'S/N:' or 'Serial Number:'" to standardize format across inconsistent manufacturer labeling. Use HBC_AI_NAMING_EXAMPLES to establish conventions—"Dyson V15 Detect Absolute" not "dyson vacuum cleaner"—ensuring searchable, consistent naming.

Fallback LLM Profiles

Configure a secondary LLM profile in Settings for mission-critical deployments. If your primary OpenAI key hits rate limits or experiences outages, the system automatically switches to your backup provider. This requires LiteLLM-compatible configuration but provides resilience for commercial usage.

Long-Press Efficiency

On the review screen, long-press the confirm button to accept all remaining items simultaneously. This seemingly small UX detail transforms batch processing from tedious confirmation into genuine speed—another example of thoughtful design throughout the application.


Comparison with Alternatives

Feature Homebox Companion Manual Entry Generic SaaS Inventory Spreadsheet + Photos
AI Photo Recognition ✅ Native GPT-5 vision ❌ None ⚠️ Often limited/basic ❌ None
Self-Hosted/Privacy ✅ Full control ✅ N/A ❌ Cloud-dependent ✅ Local files
Cost Scaling 💰 ~$0.30/100 items 🆓 Free 💰💰💰 Monthly subscriptions 🆓 Free
Natural Language Queries ✅ 21 integrated tools ❌ None ⚠️ Sometimes ❌ None
Multi-Image Analysis ✅ Up to 30 parallel N/A ❌ Rare ❌ Manual only
Open Source ✅ GPL v3.0 N/A ❌ Proprietary N/A
Setup Complexity ⚠️ Docker + API key 🆓 None ✅ Sign up 🆓 None
Custom Field Extraction ✅ AI-instructed ❌ Manual ⚠️ Limited ❌ Manual

The verdict: Manual approaches are free but consume exponentially more time. Generic SaaS solutions sacrifice privacy and accumulate subscription costs. Spreadsheets lack intelligence entirely. Homebox Companion occupies a unique position: AI-powered efficiency with complete data sovereignty, at usage-based pricing that favors intermittent inventory sessions over perpetual monthly fees.


Frequently Asked Questions

Is Homebox Companion officially part of Homebox?

No. This is an unofficial third-party companion application. It's not affiliated with or endorsed by the Homebox project maintainers, though it uses Homebox's public API for integration.

Do I need a powerful GPU or local AI hardware?

Absolutely not. Homebox Companion uses OpenAI's API by default—just an API key and internet connection. Local model support exists for privacy-focused users, but it's optional and explicitly marked experimental.

How accurate is the AI identification?

Surprisingly accurate for common items, with GPT-5 mini providing the best balance. The multi-image analysis significantly improves results. Obscure items or poor lighting may require manual correction, but the correction workflow is streamlined.

Can I use this commercially for my business?

Yes, under the GPL v3.0 license terms. For high-volume commercial use, consider OpenAI Tier 2/3 rate limits and implement the documented rate limiting configuration to prevent throughput bottlenecks.

What happens to my photos and data?

Photos are processed through your chosen LLM provider (OpenAI by default) and stored in your self-hosted Homebox instance. The Companion application itself doesn't retain inventory data—it's a stateless interface layer. For maximum privacy, configure local model deployment.

Is there a mobile app?

Not a native app, but the web interface is fully responsive and works excellently on mobile browsers. The camera integration uses standard web APIs, so photo capture feels native on both iOS and Android.

Can the AI Chat assistant delete my inventory?

Only with your explicit approval. Destructive tools require confirmation, and write operations display proposed changes before execution. The permission system is designed to prevent accidental data loss.


Conclusion: Your Inventory Deserves Intelligence

Homebox Companion represents something rare in the self-hosted ecosystem: genuinely transformative AI integration that respects user sovereignty. It doesn't lock you into proprietary cloud services, doesn't demand perpetual subscriptions, and doesn't compromise on capability. For the cost of a coffee per hundred items cataloged, you reclaim hours of tedious labor.

The project's thoughtful architecture—LiteLLM abstraction for provider flexibility, granular permission controls, comprehensive customization—reveals mature engineering behind an accessible interface. Whether you're organizing a home, streamlining a small business, or documenting valuable collections, this tool eliminates the friction between physical reality and digital records.

My assessment? This is how inventory management should work in 2025. The combination of GPT-5's multimodal capabilities with Homebox's solid inventory foundation creates something greater than the sum of its parts. The unofficial status means faster iteration and focused development without bureaucratic overhead.

Ready to stop dreading inventory day? Deploy Homebox Companion today. Start with the demo server to experience the workflow, then connect your own Homebox instance for full control. Your future self—searching effortlessly for that specific cable, tool, or collectible—will thank you.

👉 Get Homebox Companion on GitHub — Star the repository, read the full documentation, and join the growing community of developers and organizers who've discovered that inventory doesn't have to be painful.

Have questions or deployment tips? Share your Homebox Companion setup in the comments below—I'd love to hear how you're using AI to tame physical chaos.

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

Support us! ☕