← The Dokos ecosystem

Your Dokos site, from a terminal or from an AI agent.

The dokos command queries and changes a site's documents through its REST API. The same command, started with dokos mcp, becomes a local MCP server for the agent of your choice.

Publisher
Dokos SAS
Licence
MIT
Dokos version
v5

Who it is for.

  1. 01You run a site and export lists in scriptsYou list documents with filters, run a report and get the result as JSON to pass on to your other tools.
  2. 02You develop on Dokos and want to see a schema before you writeYou display a DocType's fields, options and permission rules, then create or edit a document in one command.
  3. 03You already work with an AI agentYou connect the agent to your site in one command. It reads your documents, runs your reports and prepares entries that you confirm.
  4. 04You want an agent to explore production safelyYou mark the site as read-only. Any write is refused before the request leaves your computer.

How it fits in your Dokos site.

Dokos CLI installs on your computer and talks to the site through the REST API, with an API key. The command, and the agent that uses it, have the permissions of the user whose key is saved. A key from a restricted account gives a restricted agent.
Reads run without interruption. Writes ask for a confirmation in plain language in the agent. A site can be marked as read-only. A save sends the document's last modified date, and the site refuses the write if someone changed the document in the meantime. Secrets are stored in the operating system's keychain.
If your site has the Dokos AI application with its MCP server enabled, the skills you publish there are fetched by dokos skill pull and applied by your external agent.

Documents it reads and writes
  • Every DocType and report the API key's user can access
  • DocType schemas and permission rules
  • The skills published by the site (Dokos AI application)
What it adds to your site
  • The dokos command on your computer (Linux, macOS, Windows)
  • The dokos mcp MCP server and the "dokos-erp" skill for agents
  • The "dokos" plugin for desktop agent applications that accept plugins
  • A local cache of the site's DocTypes and reports (dokos sync)
Works with
A Dokos site with an API key and secret · Python 3.11 or later

What you do with it.

  1. 01ReadQuery a site without leaving the terminalYou list documents with filters and chosen fields, read a document, count, read a value, run a report or display a DocType's schema. The result is shown as a table, or as JSON when the output is piped to another program.
  2. 02WriteWrite data, within the site's safeguardsYou create, save, submit, cancel, amend, delete or rename a document, update one value or a batch, and upload a file. An error shows the server's message and the command that addresses it. On a read-only site, the write is refused before it is sent.
  3. 03SitesWork with several sitesYou save each site under a name with dokos add-site, or from a local bench with dokos use-site. You switch the active site, or target a site for a single command with -s.
  4. 04Agents (MCP)Set up an AI agent in one commanddokos agent install registers the MCP server in the command-line agents found on your computer, pre-approves the read tools only and installs the "dokos-erp" skill. The agent reads and updates the site in natural language. Writes still need your confirmation.

How to get it.

Dokos CLI is not installed from the marketplace. It is a Python package that you install on your computer, then connect to your site.

  1. 01Install the commandpipx install "git+https://gitlab.com/dokos/dokos-cli.git@<tag>", pinning a published version. pip works too. dokos self-update updates the tool with the installation method it detects.
  2. 02Connect a sitedokos configure saves the site URL and an API key. From a local bench, dokos use-site issues the keys for the user you choose. Check with dokos get-list "User" --limit 5.
  3. 03Connect your agentsdokos agent install configures the agents found on your computer. By hand, dokos mcp --print-config prints the snippet to paste into the agent's MCP configuration, and dokos mcp starts the server.

Prerequisites

  • Python 3.11 or later, with pipx (recommended) or pip
  • An API key and secret of a site user, or a local bench

Frequently asked questions.

What is the difference with Dokos AI?

Dokos AI lives in the site: its assistant is in the Dokos interface and its flows run on the server. Dokos CLI lives on your computer and is mainly for administrators, developers and locally installed agents. Both go through MCP. If Dokos AI is installed with its MCP server enabled, the "dokos-connect" plugin connects your agent to the site with nothing to install on your computer.

Can an agent write without my approval?

dokos agent install pre-approves only the read tools (read, list, count, report, schema, permissions, sites). Write tools still need the agent's confirmation. To rule out any write, mark the site as read-only with dokos sites --read-only site-name.

Where are my credentials stored?

In the operating system's keychain. Without a keychain (container, continuous integration), they are written to the configuration file with mode 0600. The environment variables DOKOS_URL, DOKOS_API_KEY and DOKOS_API_SECRET take priority over the file.

Does it work on Windows?

Yes, on Linux, macOS and Windows. The dokos use-site and dokos setup commands, which call bench, are for Linux and macOS only. You do not need them for MCP or for the desktop agent plugin.

And from a desktop agent application?

If the application accepts plugins, add the marketplace https://gitlab.com/dokos/dokos-cli in its settings, then install the "dokos" plugin. It asks for the path of the dokos executable (which dokos or where dokos). The session must run locally: a cloud session cannot start a program on your computer.

Works with.

Tell us what you want to automate on your site.

Installation, API keys and permissions are agreed with your technical team before setup.