# castor, the self-hosted AI agent we integrate

> castor is our open-source (MIT), business-oriented AI agent. It runs on your infrastructure with any LLM, and it is the base of every deployment we deliver.

Source: https://deepfounder.ai/services/castor-self-hosted-ai-agent/ · DeepFounder AI (MVPFCTRY LLC) · Free AI audit, pilots from 2 weeks · hello@deepfounder.ai

## Overview

castor is a business-oriented AI agent built to drop into real workflows: customer operations, internal automation, knowledge retrieval, scheduled reporting, custom integrations and hardware on the floor. It is open source under the MIT license and written in Python 3.11+. Source: [github.com/deepfounder-ai/castor](https://github.com/deepfounder-ai/castor).

## Capabilities

- **Bring your own LLM:** any OpenAI-compatible provider (OpenAI, Azure OpenAI, AWS Bedrock, Groq, OpenRouter, DeepSeek, Together), a native Anthropic adapter, or local models via Ollama and LM Studio. Switch provider per thread.
- **Memory and knowledge graph:** facts, entities and summaries in one store with hybrid retrieval; ingestion of 50+ file formats.
- **Tool search:** only a small core of tools loads by default; the model activates others on demand, which keeps prompts short and costs low.
- **Skills and MCP:** pluggable skills, browser automation with Playwright, and external Model Context Protocol tool servers.
- **Routines and goals:** scheduled tasks with USD budget caps; long-running goals split into subtasks with an acceptance check.
- **Hardware:** USB and serial access to scales, barcode and RFID readers, GPS, label printers and PLCs (Modbus RTU), with confirmation before writes to actuators.
- **Interfaces:** web UI, terminal, Telegram, voice mode.
- **Operations:** encrypted secrets vault, per-call cost tracking, a built-in diagnostics command.

## castor vs hosted SaaS agents

| | castor | Hosted SaaS agents |
|---|---|---|
| Data | Stays on your infrastructure | Sent to the vendor |
| LLM choice | Any provider or local model | Vendor's model |
| Cost model | Your own LLM bill, no per-seat fee | Per-seat or per-action pricing |
| Customization | Full source, skills, MCP | System prompt and limited hooks |
| Hardware access | Native USB/serial | None |

## Engineered for small models

castor does the heavy lifting around the model: a compact system prompt, tool search, repair of malformed tool calls, self-checks before execution, context compaction and stuck detection. That keeps it reliable on small local models and cheaper on large hosted ones.

## How we use it for clients

We customize castor per client: skills for your systems, MCP connections, routines, permissions and guardrails. You own the deployment. We can operate it for you or hand it over.

## FAQ

### Is castor free?
Yes. castor is open source under the MIT license. You pay only for model usage and, if you hire us, for integration work.

### Can castor run fully offline?
Yes, with a local model and local embeddings.

### What platforms does it run on?
Linux, macOS (Intel and Apple Silicon) and Windows 10/11.
