Skip to main content

Rokovo CLI

Rokovo CLI Logo

The Rokovo CLI brings a simple AI agent on your command line to help you with documenting pure source codes for both developers and end users.

Quick Start

You can install the CLI using PIP:

pip install rokovo

Usage

Config files and initializing

Each time you call the Rokoco CLI, you need to provide some basic information context file path and model configs using proper flags defined in rokovo --help. Other way is to define a rokovo.toml for configs, rokovo_context.md for agent context and a .rokovoignore for ignored files (default fallback is .gitignore). You can use init command to get the basic template:

rokovo init --root-dir .

Context file

Context file is a markdown file that contains a high level description of your project. This will help the AI agent to understand the project better and generate more accurate documentation. A basic model of writing a context file is as follows:

  1. Project name and a brief description.
  2. Project structure and important files.
  3. Important keywords and terminologies.
  4. Usage specific context, for example if you want to to auto extract FAQs: set of questions as example to help agent with finding questions and answers.

An example context file can be found on examples_context.md.

FAQ extraction

To extract FAQs from your codebase, run the following command:

rokovo --context-dir ./context.md --root-dir ./path/to/project --api-key <your-openrouter-api-key> --re-index true # if you have changed your code base use --re-index

[!NOTE] If you already have a rokovo.toml in --root-dir, you don't need to provide those flags. For API key you can use ROKOVO_API_KEY environment variable.

Interactive mode

You can use:

rokovo interactive <flags (if config file is not exist)>

To run a REPL that let you to chat with the agent and get answers over your codebase in simple user language.

LLM

We use the OpenRouter API as default and you can use --api-key flag to pass your API key. If you are using another provider feel free to pass ``--base-urland--model` flags to configure your provider.

Any provider compatible with OpenAI API is accepted and you can use local models too.

Security and Privacy

This code base never passes your code base or any metadata to the Rokovo servers. which is verifiable by looking at the code. Only the LLM provider would access the code base which we explain about it:

If you are using a local LLM, then your code won't be accessed by any cloud AI provider which is obvious. If you are using a LLM provider like OpenAI, then they have access to files that your agent reads and to find out what exactly happens to your data in this case, you can to read the provider privacy policy and check their configs to find out since each provider can have different rules and policies.

If you are worried about secret files or specific directories, you can use .rokovoignore to ignore and exclude this files which will remove the file/directory from agents access and it can't read it by any chance.

License

MIT License - see LICENSE.

Metadata

Release files for rokovo 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rokovo 0.3.0
File Size Uploaded
rokovo-0.3.0.tar.gz 91.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rokovo 0.3.0
File Interpreter ABI Platform
rokovo-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 107.4 kB

Release files / rokovo-0.3.0.tar.gz

Download URL rokovo-0.3.0.tar.gz
Size 91.6 kB
Tags Source
SHA-256 checksum
How to use checksums
52cce0cec7f513acf1b928fd1a7b9e4b64771b49962fdcf961fdda6cbce0fc3f
BLAKE2b-256 checksum
How to use checksums
ddead1306c919f646b35860d3e7a4433ba9d6a473b17ab14f4a1e3b155e6eca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / rokovo-0.3.0-py3-none-any.whl

Download URL rokovo-0.3.0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dfa70cfe3f1a5d5f80f1a0fb75937b9f0a2bae6aa29f462b9583706d1232efa
BLAKE2b-256 checksum
How to use checksums
6a01f0c62dc6ee8aa6873b7e69cc57f68e32ec0b8730f97e9ed0b03eece643f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page