The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(components): document the components page and hosting migration
Steven Enamakelb133b7a6d7d6
diff --git a/gitbooks/SUMMARY.md b/gitbooks/SUMMARY.mdindex 000d92a258..540a00a839 100644--- a/gitbooks/SUMMARY.md+++ b/gitbooks/SUMMARY.md@@ -87,6 +87,7 @@- [Loadable modules](developing/loadable-modules.md)- [Performance and footprint](developing/performance.md)- [Pluggable engines](developing/engines.md)+- [Components](developing/components.md)- [Jev](developing/jev.md)- [Embedding](developing/embed/README.md)- [Installation](developing/embed/installation.md)diff --git a/gitbooks/developing/components.md b/gitbooks/developing/components.mdnew file mode 100644index 0000000000..cd97f11b7f--- /dev/null+++ b/gitbooks/developing/components.md@@ -0,0 +1,60 @@+---+description: >-+ The [components] config table: one switch per tiny dependency, how it narrows+ a host, and how legacy flags migrate.+icon: toggle-on+---++# Components++`config.toml` has a `[components]` table with one boolean per tiny dependency. All default to `true`.++```toml+[components]+flows = true # tinyflows: saved workflows+memes = true # tinymemes+documents = true # tinydocs+search = true # tinysearch+mcp = true # tinymcp+connectors = true # tinyconnectors (Composio)+hosting = true # tinyhosts+juice = true # tinyjuice+memory = true # tinymemory+wallet = true # tinywallet (web3, x402)+computer = true # tinycomputer+sandbox = true # tinybox+channels = true # tinychannels+skills = true # tinyskills+voice = true # tinyvoice+```++Each switch also reads `OPENHUMAN_COMPONENT_<NAME>=0|1` (for example `OPENHUMAN_COMPONENT_VOICE=0`); the environment wins over the file.++## What a switch does++The switches only narrow. The core resolves them into a component set and computes `effective = host choice ∩ components` for the domain families, background services and tool groups. A host preset (`harness`, `kernel`, `saas`, ...) decides what may exist; a switch can remove something from it, never add something back.++A method whose component is off answers `COMPONENT_DISABLED:<name>` (JSON-RPC `error.message`, with `error.data = {"kind": "component_disabled", "component": "<name>"}`) instead of `unknown method`, so the UI and CLI can explain why. A method that the host simply left out still looks unregistered.++A flag change takes effect on the next core start. There is no hot toggling.++Each component's domain wires itself to its switch (tools, services and RPC) in its own change; until then a switch removes only the families, services and tool groups listed in the core's component set.++## Not toggleable++The kernel dependencies (tinyagents, tinytools, tinyinference, tinybus) are always on. `[modules] enabled` remains the global kill switch for loadable native modules.++## Legacy flags++The first load of an older config moves these once into `[components]`, and the next save writes the result:++| Legacy setting | Becomes |+| --- | --- |+| `[hosting] enabled = false` | `components.hosting = false` |+| `[search] enabled = false` | `components.search = false` |+| `[mcp_client] enabled = false` | `components.mcp = false` |+| `[memory] engine = "none"` | `components.memory = false` (`engine` is kept) |+| `OPENHUMAN_TINYMEMES` set to an off value | `components.memes = false` |+| `[composio] enabled` | dropped; it was never read |++A `components.*` key already present in the file always wins over its legacy flag, so the migration is idempotent and turning a component back on sticks.diff --git a/gitbooks/features/hosting.md b/gitbooks/features/hosting.mdindex 75ee3d682c..719ab5b278 100644--- a/gitbooks/features/hosting.md+++ b/gitbooks/features/hosting.md@@ -49,7 +49,7 @@ team = "" # blank means your personal accountWith `api_key` blank, the credential comes from `TINYHOSTS_VERCEL_TOKEN`, then `VERCEL_TOKEN`. A team account also reads `TINYHOSTS_VERCEL_TEAM_ID` or `VERCEL_TEAM_ID`.-`[hosting] enabled` is `false` by default. When it is off, or when no credential can be found, the ten tools are not registered at all. A tool that is present but cannot work is worse than a missing one, because the model keeps retrying it.+`[hosting] enabled` is `false` by default. Setting it to `false` explicitly in an older config is migrated once to `[components] hosting = false` (see [Components](../developing/components.md)). When it is off, or when no credential can be found, the ten tools are not registered at all. A tool that is present but cannot work is worse than a missing one, because the model keeps retrying it.A misconfigured section is logged as an error and not skipped silently. That means an unknown provider name, or a key that is blank after trimming. Leaving `api_key = ""` is the supported way to defer to the provider's environment variable and is not a misconfiguration.