Why Smarter =========== .. image:: https://img.shields.io/badge/Website-smarter.sh-darkorange :target: https://smarter.sh :alt: Project Website .. image:: https://img.shields.io/badge/Community-20%2B%20Contributors-blue?logo=github :target: contributors.html :alt: Made with ❤️ by Contributors .. image:: https://img.shields.io/badge/Community-Discussions-blue?logo=github :target: https://github.com/smarter-sh/smarter/discussions :alt: Forums .. image:: https://img.shields.io/badge/Slack-The%20Smarter%20Project-4A154B?logo=slack&logoColor=white :target: https://join.slack.com/t/thesmarterproject/shared_invite/zt-4f0t6v46q-e2c5Of4hS4fBr_XwfQARCw :alt: Slack .. image:: https://img.shields.io/badge/YouTube-Tutorials-red?logo=youtube :target: https://www.youtube.com/@project-smarter :alt: Video Tutorials .. image:: https://img.shields.io/docker/pulls/mcdaniel0073/smarter.svg?logo=docker&label=Docker :target: https://hub.docker.com/r/mcdaniel0073/smarter :alt: DockerHub .. image:: https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/project-smarter :target: https://artifacthub.io/packages/search?repo=project-smarter :alt: ArtifactHub .. image:: https://img.shields.io/badge/Contribute-Good%20First%20Issues-success?logo=github :target: https://github.com/smarter-sh/smarter/labels/good%20first%20issue :alt: Contribute .. image:: https://img.shields.io/badge/Support-GitHub%20Sponsors-ff69b4?logo=githubsponsors :target: https://github.com/sponsors/lpm0073 :alt: Donate .. image:: https://img.shields.io/badge/License-AGPL--3.0-blue?logo=gnu :target: https://www.gnu.org/licenses/agpl-3.0 :alt: AGPL-3 License The Smarter Project is an open source, cloud-native :doc:`platform ` and :doc:`developer framework ` for building sophisticated AI applications **without writing a single line of Python**. An application that searches the web, queries your databases, calls your APIs, uses the tools of any MCP server, and defends itself against prompt injection and data leaks is described in one short YAML file, and deployed with one command. Smarter is also a complete **platform for teaching AI**. Companies use it to train and retrain their employees, and universities and bootcamps use it to teach their students. The :doc:`Free Course Catalog ` includes :ref:`23 ready-to-teach courses `, from prompt engineering for non-programmers to Kubernetes for platform engineers. Most come as a one-day bootcamp, a two-week online course and a four-week online course. .. raw:: html .. _ai-training-courses: AI training for your whole workforce ------------------------------------ Most organizations now need nearly every employee to work with AI, and need some of them to build it. Smarter gives a training program a real platform to teach on, and a library of courses to teach with. Learners build working AI applications from the first hour, on the same software that can run them in production afterwards. **23 free courses, 66 turnkey course plans.** The :doc:`Free Course Catalog ` has 20 :doc:`micro courses `, each in :doc:`three formats `: an eight-hour classroom bootcamp, a two-week online course and a four-week online course. Its :doc:`master classes ` go deeper: the 18-hour :doc:`Django Master Class `, :doc:`AI Application Development Master Class ` and :doc:`Python Programming with Agentic AI Master Class ` each run over three days in a classroom or six weeks online. The online formats pair 30-minute recorded lectures with a weekly 90-minute live session, so they fit around a working week. Every plan has a schedule, graded assignments with rubrics, capstone projects, a reading list and the technical prerequisites. A trainer can take a plan, set the dates, and teach it. .. list-table:: :header-rows: 1 :widths: 25 75 * - Who is learning - Courses * - **Every employee** (no programming) - :doc:`Prompt Engineering `, :doc:`AI Applications ` * - **Leaders, managers, risk and compliance** (no programming) - :doc:`AI Governance `, :doc:`AI Economics ` * - **Software engineers** - :doc:`Agentic Development `, :doc:`Backend `, :doc:`Front End `, :doc:`Full Stack `, :doc:`API Design `, :doc:`Extension Development `, :doc:`AI Features in Software `, :doc:`Secure Software `, :doc:`Software Quality `, :doc:`Software Architecture `, :doc:`Django Master Class `, :doc:`AI Application Development Master Class `, :doc:`Python Programming with Agentic AI Master Class `, :doc:`Documentation with Sphinx `, :doc:`Open Source ` * - **Platform, cloud and machine learning engineers** - :doc:`Docker `, :doc:`Kubernetes `, :doc:`Infrastructure as Code `, :doc:`Self-Hosted Models ` Smarter is built to be run for a group of learners: - **Run it locally or for everyone at once.** Learners can run Smarter on their own laptops with Docker, or use one shared instance that your team hosts on Kubernetes, which costs around $350 USD a month in the cloud. The variable cost per learner is well under a dollar a month, so a shared instance costs about the same for 30 learners as for 300. - **No licenses and no seat counts.** Smarter is open source, so every employee can use it, and keep using it after the course ends. - **Predictable model spending.** A :doc:`Budget ` caps what each learner, cohort or department can spend. Learners never hold your provider API keys. - **Cohorts kept apart.** Each cohort, department or team can have its own :doc:`Account `, with its own users, resources and budgets. - **Training that follows your policies.** :doc:`Guardrails ` keep personal data and secrets out of prompts. Every prompt is recorded, so trainers can review how a learner reached an answer. With :doc:`LLMHost `, courses can use open models on your own cluster, so prompts never leave your network. - **From the classroom to production.** The manifests that learners write in class run unchanged on a production cluster. A capstone project can become an application that their team uses. Browse the :doc:`Free Course Catalog `, then read the :doc:`Smarter Instructor Guide `. It covers installing Smarter, setting up a class, and managing cost and privacy. No code. Just a manifest. ------------------------- Until now, an AI application that combines retrieval, tool calling, and safety controls has been a software project: Python code for every API client, database query, and MCP session, glue code to route tool calls, and custom middleware to filter what goes in and out of the model. That code has to be written, tested, secured, and maintained by engineers, and every change to the application is a change to the code. Smarter replaces all of it with a :doc:`Smarter Manifest (SAM) `, a plain `YAML `__ file that declares **what** an application is, rather than programming **how** it works. Every :doc:`Resource ` in Smarter, from an :doc:`Account ` to an :doc:`LLMClient ` to a :doc:`Guardrail `, is created the same way: .. code-block:: console smarter apply -f my-ai-application.yaml This changes who can build AI applications, and how fast: - **No programming required.** Prompt engineers, business analysts, and product managers can build, read, and change production AI applications themselves. The manifest is the application. - **Sophistication is a list, not a project.** Giving an application web search, a SQL database, an MCP server, or a prompt injection guardrail means adding one line to its manifest. - **One way to do everything.** There is no resource-specific SDK to learn and no API convention to memorize. If you can write one manifest, you can write them all, and apply them from the web console, the CLI, the REST API or the Python SDK alike. - **Infrastructure as code for AI.** Manifests are versioned, diffed, reviewed in pull requests, and deployed from CI/CD, like the rest of your infrastructure. Every way to reach external data -------------------------------- An LLM is only as useful as the information it can get to. Smarter connects your AI applications to external data through every approach in use today. Each one is a :doc:`Resource ` that you declare in a manifest, and none of them requires you to write code: - **Remote APIs**: an :doc:`API Plugin ` calls your REST services, and authenticates with credentials that are stored as :doc:`Secrets `, which the model never sees. - **Remote SQL**: a :doc:`SQL Plugin ` runs parameterized queries against your databases through a managed :doc:`Connection `. - **MCP servers**: an :doc:`MCPClient ` gives your application the tools of any server in the Model Context Protocol ecosystem. - **The web**: a :doc:`WebsearchPlugin ` searches the web and reads the pages it finds. - **Expertise**: a :doc:`SkillPlugin ` packages instructions and reference material that teach a model how to do a specific job well. - **Your own documents**: a :doc:`Vectorstore ` provides semantic search over your PDFs, manuals and other proprietary content. Smarter runs the vector database for you, Qdrant on your own Kubernetes cluster, or Pinecone or Qdrant Cloud, loads and removes your documents, and takes scheduled snapshots. Governed from the first prompt ------------------------------ Instructions in a system prompt are requests, not controls. A Smarter :doc:`Guardrail ` is a deterministic software control that inspects every message on its way to the model, and every reply on its way back. Guardrails moderate abusive and unsafe content, redact personal data and leaked secrets, and stop prompt injection, jailbreaks, and code injection from bad actors, whatever the model would have done. Like everything else in Smarter, a guardrail is declared in a manifest and added to an application by name, with no code. Every intervention is recorded, so each :doc:`Prompt ` can be traced back through the guardrail checks, tool calls, and model connection that produced it, to the :doc:`Account ` and budget that authorized it. Contained by design ------------------- There is growing concern about AI agents that go rogue: agents that run code they were never meant to run, reach systems they were never meant to reach, and break out of the sandboxes that were supposed to contain them. Smarter was designed from the start on the assumption that a model will eventually try to do something it should not. It does not rely on the model to behave. It makes the dangerous actions impossible: - **No code execution.** Smarter never runs code written by a model, or by a third party, on its own servers. A :doc:`SkillPlugin ` provides instructions, not programs, and Smarter rejects any :doc:`MCPClient ` that would launch an MCP server as a local process. Remote MCP servers run on their own infrastructure, not on yours. - **Nowhere to escape to.** In production, Smarter runs on :doc:`private VPC networks ` wherever possible, and `Calico `_ network policies on Kubernetes control which ports and services each workload can reach. Containers run as a non-root user. A model cannot open a connection that the network will not carry, so breaking out is not a matter of clever prompting. It is not technically possible. - **Hardened outbound requests.** When a plugin fetches a web page, it uses https on port 443 only, to public addresses only, with every redirect validated. A model cannot direct Smarter to reach your internal network or your cloud provider's instance metadata. - **Role-based access at every layer**, from Kubernetes and the cloud account, to the :doc:`Account ` and user, to each individual Resource. A model can use only the plugins, MCP clients, and connections that its manifest names, and a manifest can name only the Resources that its author is permitted to use. - **Credentials that nobody holds.** API keys and passwords are stored as encrypted :doc:`Secrets `, and are applied by the platform when it makes a request. They never appear in a prompt, and they are never handed out to people either: developers who call a provider's API directly, with the OpenAI, Anthropic, or Google SDK that they already know, do so unchanged through a :doc:`Proxy `, with a Smarter API key in place of the provider's. Smarter adds the provider's key, restricts the endpoints that may be used, and charges every token to the person who used it. - **Guardrails on both sides of the model**, which stop prompt injection and jailbreaks on the way in, and stop leaked secrets and personal data on the way out. - **Budgets and a complete audit trail.** Every request is authorized against the :doc:`budgets ` of the user, account, and resources that it would be charged to, and every prompt, tool call, and guardrail intervention is recorded in the :doc:`Smarter Journal `. See :doc:`Security ` for details. Composed like an orchestra -------------------------- These capabilities are designed to work together, and you conduct them from the manifest. A single :doc:`LLMClient ` manifest combines a model from any :doc:`provider ` with the plugins, MCP clients, and guardrails that it needs, simply by listing them by name. Each piece plays its own part, and Smarter handles the tool calling, authentication, guardrail enforcement, and auditing in between. For example, a research analyst can search the web, read PDF reports, and have its citations checked before they reach the user. A customer support agent can draft on-brand replies behind nine guardrails for safety and privacy. A data analyst can answer business questions in SQL, check syntax against the database's own documentation over MCP, and never leak personal data. When one application is not enough, an :doc:`Orchestrator ` coordinates several LLMClients in sequential, parallel, supervisor/worker, routing, and voting/debate workflows, and it too is just a manifest. Smarter ships with built-in LLMClients like these, so that you can see the whole ensemble at work on a fresh installation, and then copy the manifests to start your own. Built for teams --------------- AI applications are built by teams, not individuals, so Smarter builds ownership and sharing into every Resource. Each LLMClient, Plugin, MCPClient, Guardrail, Secret, and Connection is owned by the person who created it, and is shared automatically with everyone in the same :doc:`Account `. Teammates can reuse each other's plugins, MCP clients, and guardrails in their own manifests by name, without copying them, and credentials stay in :doc:`Secrets ` rather than in anyone's manifest. Resources that Smarter provides are shared with every account, so your team can start from a library of ready-made building blocks. Permissions are enforced by the platform itself, in every query, for the :doc:`web console `, the :doc:`REST API `, and the :doc:`CLI ` alike. Every token is charged to the person, the application, and the account that used it, and :doc:`Budgets ` set spending limits, in dollars or in tokens, per hour, day, week or month, and in total, on anything that spends: a user, a whole account, an application, a provider, a proxy, or a GPU node group. When a limit is reached, requests are refused with your own message, in the chat window, until the limit renews, and a Budget vs Actual chart on the dashboard shows where the money goes. It is always clear who built what, who can change it, and who is paying for it. Runs at scale, on your infrastructure ------------------------------------- Smarter runs wherever you do. Start with a single `Docker `_ container on your laptop, then go to production on `Kubernetes `_ with the `Smarter Helm chart `_, where the application servers and background workers scale horizontally and automatically with demand. The same manifests that you wrote on your laptop run unchanged in a production cluster that serves your whole organization. There is no managed-service dependency and no vendor lock-in. You own the deployment, the data, and the infrastructure that it runs on. That includes the models. With :doc:`LLMHost `, you deploy freely downloadable models, such as Llama, Qwen, Gemma, Mistral or gpt-oss, to your Kubernetes cluster with one manifest, served by vLLM, SGLang, TGI, llama.cpp or Ollama. Smarter adds the GPU or CPU nodes that a model needs, removes them when it no longer does, and monitors its health. LLMClients use a self-hosted model the same way as a commercial one, and your prompts never leave your network. Open to your own software ------------------------- Everything that you can do in the :doc:`web console `, your own software can do too. The :doc:`Smarter API ` applies manifests, reads every resource, chats with your LLMClients, and streams their progress, and the official clients have no access to the platform that your code doesn't have. .. code-block:: python from smarter import Smarter client = Smarter() # SMARTER_API_KEY, or the smarter cli's ~/.smarter/config.yaml client.manifests.apply("my-ai-application.yaml") llmclient = client.llm_clients.find("customer_support") print(client.llm_clients.prompt(llmclient.id, "Where is my order #1234?").text) - **A published, typed contract.** Every Smarter platform describes its API in an :doc:`OpenAPI 3.1 document `, with a JSON Schema for every manifest kind, all generated from the same Pydantic models that the platform itself runs on, and tested against its real responses. Generate a client in any language from it. - **Official SDKs and tools.** The :doc:`Python SDK ` (``pip install smarter-api``), the :doc:`Node.js SDK ` (``npm install @smarter.sh/api``), the :doc:`Go SDK `, the :doc:`CLI `, a `VS Code extension `_, and a :doc:`React component ` that adds a Smarter chat to any web page. Each follows the same :doc:`design `. - **Your existing code, unchanged.** Software written with the OpenAI, Anthropic, or Google SDK calls its provider through a :doc:`Proxy `, with a Smarter API key in place of the provider's, and gains Smarter's governance and cost accounting. At a glance ----------- - **Get started** | :doc:`smarter-platform/installation/quick-start` | :doc:`smarter-platform/prerequisites` | :doc:`smarter-platform/trouble-shooting` | `Tutorial `__ - **Teaching and training** | :doc:`Free Course Catalog ` | :doc:`Instructor Guide ` | :doc:`Course formats ` - 23 free courses for employees, managers, developers and platform engineers, with plans for a one-day bootcamp, a two-week online course and a four-week online course, and three 18-hour master classes, on Django, on AI application development, and on Python programming with agentic AI. - Per-learner budgets, separate accounts for each cohort, and a record of every prompt, on learners' laptops or on one shared Kubernetes instance. - **Platform** - A :doc:`proxy server ` that gives secure, governed, auditable access to AI providers and resources, without exposing secrets or the underlying vendor accounts. - Build every :doc:`AI resource ` with declarative :doc:`YAML manifests `, with no Python programming, much as you would with `Kubernetes `_. - Manage resources with the :doc:`web console `, the :doc:`REST API `, the :doc:`command-line interface `, and the :doc:`Python `, :doc:`Node.js ` and :doc:`Go ` SDKs. - An open, typed :doc:`OpenAPI 3.1 contract `, served by every platform, to generate clients in any language. - Built for teams: every resource has an owner, and is shared with everyone in the owner's :doc:`Account `. - Runs at scale on Kubernetes, with automatic horizontal scaling of application servers and background workers. - Built-in :doc:`logging `, :doc:`cost accounting `, and :doc:`security `. - **Knowledge and tools** - :doc:`API `, :doc:`SQL `, :doc:`Websearch `, :doc:`Skill `, and :doc:`Static ` :doc:`Plugins `. - :doc:`MCPClients ` for the Model Context Protocol ecosystem. - :doc:`Vectorstores ` for semantic search over your own content. - **Trust and safety** - Input and output :doc:`Guardrails ` for moderation, self-harm, personal data, data subject requests, leaked secrets, profanity, fabricated citations, prompt injection, jailbreaks, and code injection. - End-to-end audit, from each :doc:`Prompt ` back to the Account that authorized it. - Spending limits with :doc:`Budgets `, on users, accounts, applications, providers, and GPU infrastructure, with budget versus actual charts. - **Models and workflows** - Works with many :doc:`AI model providers `, including `OpenAI `_, `Google AI `_, `Meta AI `_, and `DeepSeek `_, as well as open models that you host on your own Kubernetes cluster with :doc:`LLMHost `. - Multi-agent workflows with :doc:`Orchestrator `. - A :doc:`prompt engineering workbench ` for testing applications before you deploy them. - **Developer framework** - For when you do want to write code: built on :doc:`Django `, :doc:`Django REST Framework `, and :doc:`Pydantic `, and the same framework that Smarter itself is built on. - Automated :doc:`AWS cloud infrastructure ` and :doc:`Kubernetes ` management. - A :doc:`React component ` that adds a Smarter chat to any web page. - :doc:`APIs, SDKs and integrations `: SDKs for :doc:`Python ` (``pip install smarter-api``), :doc:`Node.js ` (``npm install @smarter.sh/api``) and :doc:`Go `, `NPM packages `_, a `VS Code extension `_, and :doc:`chat integrations ` for WordPress, Drupal, Shopify, Google Tag Manager and documentation sites. Usage ------ **1. Create a Smarter manifest** This built-in LLMClient is a complete, governed AI application. It combines a SkillPlugin, an MCPClient, and four guardrails, and it contains no code. .. literalinclude:: /_example-manifests/smarter/llm-clients/llmclient-data-analyst.yaml :language: yaml :caption: Example Smarter Manifest From `llm-clients/llmclient-data-analyst.yaml `__ in the :doc:`example manifests repository `. **2. Apply the Manifest** .. code-block:: console smarter apply -f llmclient-data-analyst.yaml **3. Interact** .. raw:: html
Smarter Prompt Engineering Workbench Demo

To try it yourself, follow the :doc:`Quick Start Guide `: Smarter runs on your desktop in about 10 minutes.