> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enconvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI and Local API

> Run Enconvo's commands from Terminal and call its local HTTP API from scripts, agents and other apps.

This page is for developers and power users who want to drive Enconvo from Terminal, a script or another app. The `enconvo` command ships with the Enconvo desktop app, with no separate install, and the app serves every installed plugin's routes over a local HTTP API.

This video covers the APIs page, the CLI Guide, and Hooks.

![How to Use Enconvo's APIs, CLI and Hooks | Step-by-Step Tutorial](https://img.youtube.com/vi/52s8NEIzxDo/maxresdefault.jpg)

Keep Enconvo running for commands that use its local runtime.

## Find commands

```bash theme={null}
enconvo -h
enconvo knowledge_base -h
```

Append `-h` to the command you are investigating to see its current subcommands and options.

Open **Settings → CLI Guide** to see the installed extensions that expose CLI commands. Click a name to copy its `enconvo <name> -h` command. The installed extension list is the authority for what your app supports.

If your shell cannot find `enconvo`, open the app's CLI Guide and check your installed app version and command-line setup.

## Call the local API

The app serves each route at `http://localhost:54535/api/<extension>/<route>`. Send a `POST` with a JSON body:

```bash theme={null}
curl -X POST http://localhost:54535/api/enconvo/extension/available_list \
  -H "Content-Type: application/json" \
  -d '{}'
```

Open **Settings → APIs** and click **Check APIs** to inspect the available routes and request schemas, with an example for each. Use the schema for your installed build when writing an integration; route parameters can change as extensions evolve.

For an AI client that only needs knowledge-base retrieval, use the dedicated [Knowledge Base MCP](https://docs.enconvo.ai/advanced/knowledge-base-mcp.md) connection instead of exposing the general local API.

Treat local API and shell access as powerful capabilities: commands can read or modify local data according to their implementation. Keep scripts explicit about the command, input, and destination.

## Build on it

* [Developing Extensions](https://docs.enconvo.ai/extensions/developing.md): add your own commands and routes. A file in a plugin's `src/api/` becomes a route here.
* [Extension API Reference](https://docs.enconvo.ai/extensions/extension-api-reference.md): the SDK's entry points.
* [Hooks](https://docs.enconvo.ai/configuration/hooks.md): run your own commands at set points in an Agent's work. They come from your JSON config, and **Settings → Hooks** lists the ones loaded.
* [Automations](https://docs.enconvo.ai/workflows/scheduled-jobs.md): run work at a chosen time.
* [Configure Enconvo on a Linux server](https://docs.enconvo.ai/advanced/linux-server.md): set the models, agents and plugins of a server your Mac added, with the same `enconvo` command.

## Related

> [card] [Developing Extensions](https://docs.enconvo.ai/extensions/developing.md)
>
> Build a command or a Local API route

> [card] [Knowledge Base MCP](https://docs.enconvo.ai/advanced/knowledge-base-mcp.md)
>
> Give another AI client your knowledge bases


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.