A plugin is how you add new tools to Javis without editing the source: a Python folder dropped in the right place, loaded automatically, and from then on every engine (Claude Code, ChatGPT/Codex, OpenRouter, OpenAI, Anthropic, Gemini) can call that tool.

This page covers reading the plugin list on the dashboard’s Plugins page, turning each one on and off, understanding the 30 built-in plugins, and how to install your own with the safety rails you must know before you do.

What this feature is

A plugin is one folder with 2 files:

  • plugin.yaml: declares the name, slug, description, version, enabled state, minimum permission level, and the lists of tools and hooks.
  • plugin.py: the Python code, which must have a register(ctx) function. Inside it you call ctx.register_tool(...) to add a tool, and/or ctx.register_hook(...) to add a hook.

A plugin gives Javis two things:

  • A tool: something an engine can call, for example javis_now (asking what time it is in Vietnam) or javis_generate_image (creating an image). Plugin tools go through the MCP Hub, so every engine can use them, not only Claude Code.
  • A hook: code that runs around each tool call. The current build supports two events around tools: pre_tool_call (before the tool runs) and post_tool_call (after it finishes). When no plugin registers a hook, Javis wraps nothing at all, so it costs nothing. A third event, chatbot_turn_context, runs once per dedicated-bot turn and lets a plugin add one line of context (see below).

Plugin tools respect Javis’s 3 permission levels exactly like any other tool, so a loop running read-only cannot call a plugin’s write tool.

How a plugin differs from a Skill and an MCP

These three get mixed up often. Tell them apart by asking “what is actually missing”:

What is missing What to use What it really is
Javis does not know how to do a kind of work your way Skill A SKILL.md file with instructions. No code runs, it only teaches the AI the right procedure. See Skills.
You need a real action in Python (computation, data transformation, calling a simple API, reading or writing files under custom rules) that nothing else covers Plugin Real Python code, adding tools and hooks for every engine.
You need an external data source that already has a server (POS, ads, calendar, email, notes…) Connection (MCP) Attach the existing server on the Connections page, no code needed. See Connections and business data.

In short: a skill is know-how, a plugin is code that really runs, an MCP is an existing data source. If what you need already has an MCP, do not write a plugin.

Where to open it in Javis

Open the dashboard (default port 7777), look at the left navigation rail, click the Capabilities group to open it, then click Plugins. The page header reads Plugins with the subtitle “Native tools and hooks for every engine”.

The page has two parts:

  • The left column (a row of chips on a phone): the filters All, On, Off, Errors (shown only when a plugin has an error), then the Source group with Made by you, From Javis Store, Built in, and the This machine group with Software on this machine (shown only when there is some). Each entry has a count. At the bottom is an Open Javis Store button.
  • The right side: the search box “Search by name or what it does”, an Install from .zip button, an Add a tool button, then the list of tools sorted by name. The search ignores accents and also matches command names.

If this machine sets JAVIS_ENABLE_USER_PLUGINS=false, the top of the page shows the warning “Plugins you installed are turned off on this machine.” with an (i) button explaining how to turn them back on. Built-in plugins keep running normally.

With no plugins at all, the page reads “No plugins yet. Drop a plugin folder into <path> then reload.”

Software on this machine lists things Javis can use but does not ship with (for example a browser, the offline listener). Each row shows Ready, Not installed or Installing, with an Install or Remove button.

Reading a tool row

Each plugin is one row. Read it left to right:

  • The plugin’s name, with its description below (the description field in plugin.yaml).
  • The info line: the permission level (Read only, Writes files or Full access), the number of commands (“3 commands”), “has a hook” if the plugin registers a hook, then a status if there is one (Error, off by env, on (not loaded)).
  • A source tag (in the All, On, Off and Errors filters): Yours or Javis Store. Built-in plugins have no tag. A plugin that lives in a brain carries a This brain tag.
  • A switch on the right to turn it on or off. A plugin that comes from Javis Store has no switch but a By pack button.

A plugin that is off shows dimmed.

Click a row to open the detail panel:

  • The top shows the source (Built into Javis, Made by you, From Javis Store or This brain), the name and the switch.
  • Permission: the level with an explanation. “Read only” only looks at data. “Writes files” may create and edit files in the brain. “Full access” does real work in other services, like sending messages.
  • Commands Javis can call (n): each tool is a chip, and so is each hook. These are exactly the names the engine will call, so to have Javis use a particular tool, mention the name on the chip.
  • ID (the slug), Version, Author, and Folder (only for your own plugins).
  • The error reason (in red) if the plugin failed to load.
  • An Open page button if the plugin has its own page, and a Remove this tool button at the very end.

The three plugin sources live in three places:

Source Meaning Where it lives
Built in A plugin shipped with the app, published by Javis, trusted system/plugins/<slug>/ in the install folder
Made by you (global) A plugin you installed, shared by every brain Javis’s state folder, <JAVIS_STATE_DIR>/plugins/<slug>/
Made by you, tagged This brain A plugin you installed, used by one brain only <brain>/plugins/<slug>/ (an older brain may have <brain>/Javis/plugins/<slug>/)

On a slug collision, the later source wins: a plugin in a brain named datetime-vn replaces the built-in one of the same name.

How to use it (step by step)

Step 1: See which plugins are running

Go to Capabilities > Plugins and pick the On filter. Only a plugin whose switch is on and that shows no status actually exposes tools to the engine.

Step 2: Turn a plugin on or off

  1. Find the plugin’s row (type its name in the search box to get there fast).
  2. Click the switch on the right of the row, or the switch in the detail panel.
  3. Javis shows a short notice “Turned on ” or “Turned off ”, and the list reloads.

For a Built-in plugin, Javis does not edit the app’s files: your on/off choice is written to a plugins.json file in the state folder. That way updating Javis to a new version does not lose your choice.

For plugins Made by you, Javis writes enabled: true/false straight into that plugin’s plugin.yaml.

Turning a plugin on or off takes effect immediately with no restart: Javis refreshes the hub’s cache so the tool appears or disappears on the next chat turn, and the brain’s capability index Javis/index.md is rebuilt too.

The one exception: if you turn on a plugin Made by you on a machine that sets JAVIS_ENABLE_USER_PLUGINS=false, Javis shows a dialog saying it was enabled in the manifest BUT this machine turns user-installed plugins off, and to remove that variable (or set it to true) and restart. The row then shows the off by env status.

Step 3: Check that the tool reached the engine

Open the chat box and ask directly, for example “what time is it” (the datetime-vn plugin) or “list my Facebook Pages” (the meta-pages-graph plugin). Javis knows which plugins are running because the “Running plugins” list with their tool names is placed into the context of every chat turn.

If a tool is blocked by the permission level, the answer contains the error line verbatim, starting with ERROR: tool '<name>' needs a higher permission level. If a tool needs a connection you do not have, the error states which page to go to in order to attach it.

Adding a new tool

Click Add a tool. There are three choices:

  • Find one in Javis Store: checked tools, installed in one tap.
  • Ask Javis in chat: describe the job and Javis writes the tool for you. Javis opens the chat box and fills in “Make me a tool that “.
  • Install from .zip: a tool file you already have. It installs switched off: check it, then turn it on. If the file is a full Javis Store pack, Javis opens the pack install screen instead.

The built-in plugins

These ship with the app (the Built in filter). All are on by default except tool-audit.

Name on the page slug Tools provided Permission
Date & time datetime-vn javis_now, javis_date_add Read only
Control apps on this computer desktop-apps javis_app_list, javis_app_open, javis_app_close Writes files
Create and view images (ChatGPT) image-chatgpt javis_generate_image, javis_describe_image Writes files
Reply to customers from the inbox inbox-reply inbox_find, inbox_reply Full access
Connect an MCP server javis-connect javis_add_mcp Writes files
Javis Core’s name and style javis-core-name javis_core_name Writes files
GitHub in chat javis-github javis_github Writes files
Goals (Resonance) javis-goal javis_goal, javis_submit_deliverable Writes files
Improve on request javis-improve javis_improve Read only
Background jobs javis-job javis_job Writes files
Cookies javis-login javis_login Read only
Memory from chat javis-memory javis_memory Writes files
My tasks and habits javis-mine javis_mytask Writes files
Notification commander javis-notify javis_notify Writes files
Plugins from chat javis-plugin javis_plugin Writes files
Self-learning projects javis-project javis_project Writes files
Group bot reply judge javis-reply-policy javis_reply_policy, javis_reply_policy_tune Read only
Recurring jobs & reminders javis-schedule javis_schedule Writes files
Kanban tasks javis-task javis_task Writes files
Team chat management javis-team javis_team Writes files
Self-tuning background work javis-tune javis_tune Writes files
Dashboard control javis-ui javis_ui Writes files
Web page watch javis-watch javis_watch Writes files
Workflow history javis-workflow javis_workflow Read only
Messenger health check messenger-health messenger_check, messenger_repair Full access
Meta Ads (Graph API) meta-ads-graph meta_ads_accounts, meta_ads_insights, meta_ads_campaigns, meta_ads_get Read only
Facebook Pages (Graph API) meta-pages-graph fb_pages_list, fb_page_posts, fb_page_comments, fb_page_scheduled, fb_page_insights, fb_page_ig_posts, fb_page_post, fb_page_photo, fb_page_album, fb_page_video, fb_page_edit, fb_page_delete, fb_page_reply Full access
Tool usage log (off by default) tool-audit javis_tool_stats + the post_tool_call hook Read only
Voice notes voice-note javis_voice_note Writes files
Read YouTube videos youtube-read javis_youtube_read Read only

A short note on the newer plugins (from the description in each plugin.yaml):

  • Control apps on this computer: opens, closes and lists apps on the machine running Javis (“open Chrome”, “close Excel”). Blocks itself when Javis runs in Docker on a server.
  • Reply to customers from the inbox: finds a customer conversation and sends a reply, or images and files from the brain, on that chat’s own channel, as if the owner sent it from the inbox.
  • Javis Core’s name and style: gives this brain’s Javis Core its own name and way of talking, right in chat.
  • GitHub in chat: shows the branch, PR and CI of the chat’s repo, queues the next job to start once the PR is merged, and cross-reviews a PR when asked.
  • Goals (Resonance): sets up or updates a lasting goal when you hand over work that needs following up. Only shown in brains with Resonance turned on.
  • Improve on request: on the owner’s request, Javis changes assistants, skills, workflows, loops and memory, with backup and undo.
  • Background jobs: tracks commands left running (render, build, download), lets you say “when it’s done, do this next”, and stops a job.
  • Cookies: opens a web page that needs a sign-in using a session the owner stored on the Cookies page. Never returns the cookies.
  • Memory from chat: lists, edits and forgets the brain’s memories and switches new memories on or off, in words.
  • My tasks and habits: adds, edits and ticks off tasks, appointments and habits in the Mine tab of the Tasks page.
  • Notification commander: changes the mode of each notice group (everything, important and up, urgent only, off).
  • Plugins from chat: Javis creates, reads and edits your own plugins in place. A new plugin, or one whose code just changed, always stays off.
  • Self-learning projects: notes what Javis learns about a project and attaches files and links to a project, an assistant or a team.
  • Group bot reply judge: reads when a group bot spoke or stayed silent and tunes it when the owner asks. Customer-facing bots never see this tool.
  • Self-tuning background work: adjusts how background jobs pick their model from what you say (“save tokens”, “be thorough”).
  • Dashboard control: opens a page, a file or a Kanban task on the open dashboard as you ask.
  • Web page watch: watches a page on a schedule and alerts when it changes, when some text appears or when a price drops below a threshold. Spends no tokens unless summaries are on.
  • Workflow history: shows recent workflow runs and the result of each.
  • Messenger health check: checks each Facebook Page’s Messenger bot connection and repairs the webhook when the bot goes silent.
  • Voice notes: records a short spoken message (up to 1000 characters) as an mp3 in attachments/voice/ and embeds it in the answer.

More on the long-standing plugins:

  • Kanban tasks: queue a background job straight from chat (op=add) and see how running work is going (op=list). Added in 0.17.1. Before that the only route was POST /kanban/task, and calling it required running machine commands, so only Claude Code and Codex could do it even though the documentation promised every brain could. This tool calls the in-process queue directly and opens no extra HTTP door. By default it queues work at the full level (acting outside on its own, as in chat); say so if you want the job to only write drafts (auto) or only read (suggest). Before 0.55.62 this tool refused the full level and defaulted to suggest. Moving columns and approving pending work still happen on the Work page; cancelling a job works from chat too (op=cancel). Since 0.107.0 it also takes route: auto (one shared worker does it) or wf:<slug> to run one real workflow; a wrong slug is refused, and with route auto the tool warns when the job name mentions a real workflow.
  • Team chat management: have Javis create a team chat, rename it, add or remove assistants, pick the lead, archive or delete the team, and create new assistants with their own model then add them to the team in one go (“make a test team of three assistants, each on its own model”). Added in 0.173.0. The tool calls the same operations the Teams page uses, so the rules are the same as clicking by hand. Deleting only works on an archived team and only when you clearly say delete; the assistant files are not deleted with it. Customer-care bots do not see this tool. Since 0.357.0 the tool can also hand a job to an existing Team (op dispatch) and read back its status and review (op job); the result reports back to the chat that handed it over.
  • Connect an MCP server: have Javis attach a new MCP source right from chat, and it appears on the Connections page under “Connected” like an account you added by hand, shared by every brain. Before this plugin, Javis had no way to write into the connection store, so all it could do was run claude mcp add; that server landed in Claude Code’s own configuration where the other six brains could not see it, and on the Connections page it did not sit under “Connected” but fell into the collapsed “Connections already in Claude Code and Codex” section (closed by default), so it looked as if nothing had been added. Three safety rails: the permission level defaults to read only (raise it yourself on the Connections page if you want writes); a source that runs a local command (stdio) is added disabled so you read the command before enabling it; and a service already in the Connections catalogue (Gmail, Calendar, POS…) makes Javis point at the right card rather than spawning a parallel hand-declared copy. If the connection test fails, the entry stays on the Connections page with the reason rather than vanishing silently.
  • Zalo extras (the javis.zalo pack on Javis Store): since 0.73.0 the Zalo tools that fill what the standard MCP lacks no longer ship inside the app, so people who do not use Zalo do not carry them. The pack has image and file sending (zalo_send_image), tagging the right people, notes, reminders and polls in a group (zalo_group_members, zalo_send_mention, zalo_create_note, zalo_create_reminder, zalo_create_poll) and reading group images (zalo_read_images). Javis offers it right after you scan the Zalo QR; on a machine that already used Zalo, the Connections page shows an install button. Details in Zalo.
  • Date & time: tells Javis today’s date, the time and the weekday in the timezone picked in Settings, and computes relative dates (“in 3 days”, “last week”). Pure standard library, no network needed. It is also the simplest example plugin to read when you want to write your own.
  • Recurring jobs and reminders: lets you create, list and cancel recurring jobs and reminders right in a chat sentence, with no YAML typing. Repeating, durable work is written to Javis/loops/<slug>.md (editable in Obsidian); one-off reminders or cron schedules go into the reminder store. Details in Recurring jobs and reminders.
  • Create images (ChatGPT): generates images from a description using the ChatGPT plan you are signed in to (OAuth), with no OpenAI API key. Images are saved into the brain’s attachments/ then embedded straight into the answer. It requires ChatGPT connected on the Models page; without it the tool returns a sentence saying ChatGPT (OAuth) is not connected and telling you to sign in on the Models page and try again.
  • Read YouTube videos: paste a video link into chat and ask for a summary. The plugin fetches the video’s real subtitles (the route the YouTube player uses) so Javis reads the dialogue rather than guessing from the title. No API key, no YouTube sign-in, and it works on every engine, including API engines that cannot open a URL. When YouTube blocks the server it cycles through six player variants before falling back to yt-dlp, which gets past most robot-suspicion cases. A video with no subtitles, a private video or one YouTube blocks makes the tool state the reason plainly so Javis does not invent anything. A long video that got truncated continues when you ask it to “keep reading”. Details in Chat.
  • Meta Ads (Graph API): reads Facebook/Instagram advertising figures (ad accounts, campaigns, performance). Read only, spends no money. Requires the “Meta Ads (Facebook & Instagram)” connection on the Connections page.
  • Facebook Pages (Graph API): manages Pages. Reading the Page list, posts, comments, Page insights and Instagram posts is read-only; posting, uploading photos, albums and videos, editing text, deleting posts and replying to comments are real, public actions and need the full-power level. Uses the Pages connected on the Facebook Messenger card on the Connections page (or the store’s Facebook Pages connection if installed earlier).
  • Facebook monitoring (Apify) no longer ships inside Javis (since 2026-11-12): the fb_monitor tool comes with the Facebook monitor (Apify) pack in Javis Store. If you installed that pack before, update it and the tool is back; otherwise install the pack and paste your apify.com Personal API token on the Connections page.
  • Tool usage log: counts how many times each tool is called by the engine (through the post_tool_call hook) and lets you see the most-used ones. It is a demonstration of the hook mechanism, so it is off by default; turn it on in the Plugins page, chat a few turns that call tools, then ask Javis which tool is used most.

A note about the “Permission” column: that is the level declared for the whole plugin and what the page shows. Each tool inside still has its own level. For example meta-pages-graph says “Full access”, but its six reading tools (Page list, posts, comments, scheduled posts, Page insights, Instagram posts) only need read-only, and only the posting, editing, deleting and replying tools need full access. Likewise javis_describe_image in image-chatgpt only needs read-only.

Plugins that come from a Package

Since 0.55.23, a Package installed on the Javis Store page can bring plugins along, meaning new tools rather than only connection services. They appear on this page in the From Javis Store group, tagged Javis Store.

They differ from the other three sources in three ways:

  • Turning on, off and removing all happen in Javis Store, not here. A plugin travels with its whole package, so toggling it separately only causes confusion. Its row has no switch but a By pack button; the detail panel has a Manage in Javis Store button.
  • JAVIS_ENABLE_USER_PLUGINS does not apply to packages. A package goes through the installer, meaning you saw the screen listing every code file before clicking agree, and its code signature is checked on every load.
  • The code in the package is locked to its content. At install time, Javis records a fingerprint of all the code in the package. On every load it recomputes and compares: one byte off and the plugin does not run, with the error reason stating that the code in the package changed since you agreed to install it. To keep using it, reinstall from Javis Store to review and confirm again.

A note when editing by hand: opening a package’s plugin.py in a Windows editor and saving is enough to shift the fingerprint, because many editors change the line endings. That is not a bug, the file content genuinely differs. To modify a plugin, edit it in your own plugin folder rather than inside a package.

A package may not carry a plugin whose name collides with one of Javis’s bundled plugins. The installer refuses immediately and names the collision, so no package can quietly replace a core tool.

Removing a plugin from the list entirely

Turning it off with the switch keeps the row visible; the Remove this tool button (at the end of the detail panel) makes it disappear from the main list. Javis asks before removing, and the notice after removing has an Undo button. Both make the plugin’s tools vanish from every brain, differing only in whether you still intend to use it.

Removing does not delete the files in the install. Javis only records the choice in the state folder, so updating Javis does not bring the plugin back, and reinstalling is one click on Reinstall in the Removed section at the bottom of the list (collapsed by default).

This applies to built-in plugins shipped with Javis too. It is how you tidy the default set when you do not use one.

The minimum permission level and run modes

Each plugin tool declares a minimum permission level; each Javis run has a permission ceiling. A tool only runs when the run’s ceiling is high enough.

The tool’s minimum (the label on the page) Meaning Which mode it runs in
readonly - “Read only” Only reads or computes, changes nothing Every mode
safe - “Writes files” Writes files or spends quota Auto (drafts) mode and Full power
full - “Full access” A real outside action (posting, deleting, sending) Full power mode only

The chat box you type into runs at the full level, so all three kinds are callable. Conversely, a recurring job set to Suggest can only run read-only tools; meeting a higher-level tool it returns ERROR: tool '<name>' needs a higher permission level (...) and stops rather than acting recklessly. This is a hard block in code, not an instruction in the prompt, so no model can talk its way past it.

Installing your own plugin

Step 1: Choose where to put it

There are two places, depending on whether the plugin should be shared or private:

  • Global (recommended): <JAVIS_STATE_DIR>/plugins/<slug>/. Every brain sees it and every engine can call it. The real path is shown behind the (i) button at the bottom of the Add a tool box on the Plugins page, so copy it from there. JAVIS_STATE_DIR defaults to the project’s server/ folder; on Docker/VPS it is usually /data/state.
  • One brain only: <brain>/plugins/<slug>/. Only that brain can use it. Suitable when the plugin is tightly bound to one brain’s data.

<slug> is the folder name and must be lowercase ASCII without diacritics, starting with a letter or digit, containing only letters, digits, dots, underscores and hyphens. Get the character set wrong and Javis skips the plugin, reporting “invalid slug”.

Step 2: Write plugin.yaml

name: Shipping calculator
slug: tinh-tien-ship
version: 1.0.0
description: Calculates the delivery fee by weight and area using the shop's price table.
author: You
enabled: false            # always create it DISABLED, enable it after re-reading the code
min_mode: readonly        # readonly | safe | full
tools: [tinh_tien_ship]
hooks: []                 # for example: [post_tool_call]

The tools and hooks fields here only exist for display on the Plugins page. What actually creates the tool is the code in plugin.py, so keep these two lists matching the code to avoid confusion.

Step 3: Write plugin.py

def register(ctx):
    def handler(args, ctx):        # args is a dict; return a string. On failure return "ERROR: ..."
        kg = float((args or {}).get("kg") or 0)
        return f"Shipping fee: {int(kg * 5000)} dong"

    ctx.register_tool(
        name="tinh_tien_ship",
        description="Calculates the delivery fee by weight (kg). Use when a customer asks about shipping.",
        handler=handler,
        min_mode="readonly",
        schema={"type": "object",
                "properties": {"kg": {"type": "number", "description": "Parcel weight"}},
                "required": ["kg"]},
    )

A few things to remember while writing:

  • A tool name must start with a lowercase letter and contain only lowercase letters, digits and underscores.
  • The description is what the engine reads to decide when to call the tool, so state the situation and the parameters clearly. A vague description leaves the tool sitting unused.
  • The handler can be an ordinary or an async function. Returning a string is simplest; returning a dict makes Javis convert it to JSON.
  • ctx provides ctx.slug, ctx.vault_root (the working brain) and ctx.data_dir (a private folder for the plugin’s state, which is not inside the brain so it does not pollute your notes).
  • To make a tool refuse itself when prerequisites are missing (not signed in, no key), pass check_fn=, a function returning None when ready or an explanatory sentence when not.
  • A broken plugin does not bring Javis down: every load step, tool call and hook is wrapped, and the error appears only on that plugin’s row.

Step 4: Enable the plugin

Since 0.162.0, Javis loads the plugins you install by default: a plugin with enabled: true (you turned its switch on) runs, no environment variable needed.

To block user plugins on a machine altogether (for example a shared server):

  1. Open the .env file in the project root (create it if absent, see .env configuration).
  2. Add one line: JAVIS_ENABLE_USER_PLUGINS=false
  3. Save the file and restart Javis.

Off accepts 0, false, no or off (case insensitive). The old name JAVIS_ENABLE_VAULT_PLUGINS still works, but when both are set the new name wins.

Safety rails (read before installing an unfamiliar plugin)

This is the most important part of this page.

  • Plugins you install run real Python code, inside Javis’s own server process. They have that process’s rights: reading and writing files, calling the network, reading environment variables. Since 0.162.0 the project owner chose to load them by default; the remaining guard is each plugin’s own on switch (enabled: true in plugin.yaml).
  • Only enable a plugin once you have read its code. Note: anyone who can write into a plugins/ folder (including the model, since it can write into the brain) can also write enabled: true. On a shared server, or one that runs bots for strangers, set JAVIS_ENABLE_USER_PLUGINS=false.
  • Built-in plugins are not subject to this switch because they ship with the Javis release. They keep working even when the machine sets false.
  • A plugin Javis creates from chat is always off (enabled: false), even right after Javis edits its code. Javis never turns it on for you; you must read the code then turn the switch on yourself.
  • Do not write plugins that perform money, order, messaging or publishing actions. Those should go through MCP connections and the permission system, where the blocks and logs already exist. A plugin should be min_mode: readonly unless you deliberately need otherwise.
  • Do not clone bundled plugins into a brain. They travel with the app and update themselves; a copy in the brain shadows the original and stops being updated.

Asking Javis to create a plugin in words

You do not have to type the two files yourself. Open the chat box and say it plainly, for example: “Create me a plugin that calculates shipping by weight, 5 thousand per kilo, rounding up below 1 kilo.”

Javis first picks the right kind of capability (if only instructions are needed it writes a skill; if it is an existing data source it advises attaching an MCP), checks for duplicates against what the brain already has, and only then writes the plugin folder. When it finishes it reports the file names and reminds you the plugin is off.

Then you do 2 things yourself: open plugin.py and read the code (using the Files page if the plugin is inside a brain), then go to Plugins and turn its switch on.

Hooks: running around each tool call

Besides tools, a plugin can register hooks. The current build has two events:

Event When it fires What it receives
pre_tool_call Just before any tool runs tool_name, args, mode, vault_root, turn
post_tool_call Just after a tool finishes plus result

turn tells a hook who is talking in that tool call: kenh (the channel), sender_id (the id of whoever sent this message; in a group it is still the sender, not the group), chat_type (private or group), chat_id (the conversation) and la_chu (true on the dashboard and the owner’s admin channels, always false for a dedicated bot). When it cannot be known (background work, an engine that cannot carry the turn key yet) turn is None: a hook that needs an identity must read None as “nobody”, never as the owner.

A hook wraps every tool call, MCP tools and core tools included, not only that plugin’s tools. Use it for logging, counting, alerting. When no plugin registers a hook, Javis wraps nothing, so there is no performance cost. The tool-audit plugin is a working example: enable it and every tool call is counted into a file private to the plugin.

Chatbot turn context hook (chatbot_turn_context)

The third event does not wrap tool calls. It runs once per dedicated-bot turn, just before the engine writes the reply. It solves something the model cannot do on its own: know which account is writing. The model only sees a display name, and anyone can type a name (“I’m An’s mum”). The channel layer knows the real account id, and this hook hands that id to a plugin, not to the model.

The callback receives these keys (always declare **kwargs, new keys may be added later):

Key Meaning
channel Channel of the turn: zalo_personal, telegram, zalo, messenger…
account_id The channel account the bot answers through, empty when the bot has none
bot_id The dedicated bot’s id
chat_type private or group
chat_id The conversation (the group id in a group)
sender_id The platform-assigned account id of whoever sent this message, never a display name. In a group it is still the sender. Empty for a member-join event
vault_root Path of the bot’s brain
trial true on the Try bot turn

The callback returns one short line or None. Javis puts that line in the system prompt of that turn only, inside a labelled block fenced with <operator_context>, which says this is information from the bot owner’s system, not something the person claimed.

def register(ctx):
    def _context(sender_id="", chat_type="", **kwargs):
        if chat_type != "private":
            return None                      # groups: say nothing
        return "Returning customer" if sender_id in REGULARS else None
    ctx.register_hook("chatbot_turn_context", _context)

Rails Javis enforces, which a plugin cannot loosen:

  • No plugin listening means the prompt is byte-for-byte what it was before this hook existed.
  • The core never writes the sender id into the prompt itself. Only the line a plugin returns goes in, so a plugin should return a verdict (“verified”) rather than echo the id.
  • Each line is forced to one line: newlines, control, bidi and zero-width characters become a space, and it is cut at 300 characters. Several plugins give one line each, 900 characters in total. The text <operator_context> is stripped from a line so nobody can close the block.
  • A callback that raises or takes longer than 2 seconds is skipped and logged, and the reply goes on. A synchronous callback runs in a worker thread so it cannot stall other chats.
  • Each callback gets its own copy of the keys: whatever one plugin edits, the next one does not see.

All three kinds of turn fire the hook: the live turn, the Inbox Reply for me / Suggest a reply turn (the sender is whoever wrote the last message of that chat), and the Try bot turn. A try turn carries trial: true and the try page’s synthetic sender (javis-try-user, chat javis-try), the same stand-in a try turn already uses for every per-person check. That id matches nobody real, so a roster-style plugin shows its “stranger” path. A plugin that wants to treat try turns differently reads trial.

A plugin using this hook sits behind the usual rails: a user-installed plugin does not run if the machine sets JAVIS_ENABLE_USER_PLUGINS=false, a Package plugin goes through the installer, and it should declare min_mode: readonly when it only reads.

Own page and HTTP routes (since 0.64.26)

A plugin can open web routes of its own, under /ext/<slug>/. Use it for a settings page, or for an outside service to call in (webhook, OAuth door). The Javis Gate package (javis.gate) in the store is a working example.

def register(ctx):
    ctx.register_http("", settings_page)                          # needs a dashboard login
    ctx.register_http("webhook", on_event, methods=("POST",),
                      public=True, no_cookie=True)                # an outside server calls in
    ctx.register_well_known("oauth-authorization-server", meta)  # /.well-known/...
  • A browser login is required by default. An API token cannot open a plugin’s page.
  • public=True: no login needed, the plugin checks callers itself (signature, token). Applies only to the methods declared.
  • no_cookie=True (only with public): exempt from the CSRF block, and Javis strips every cookie before handing the request over.
  • register_well_known: GET only, public, no cookie. If two plugins claim one name, the one loaded first keeps it.
  • Declare page: "" in plugin.yaml and the plugin’s detail panel gets an Open page button.
  • Only bundled plugins, plugins from an installed package and global plugins get routes. A plugin inside a brain does not, because the model can write into the brain.

Javis Gate: an outside AI posts into a chat (since 0.440.0)

The Javis Gate package (javis.gate) opens an MCP door with OAuth for ChatGPT, Claude and other AIs. Besides the tools Javis already has, that door carries extra tools only the outside AI sees:

Tool What it does Access level
javis_chat_find Find chats by title (accents ignored) or content Any
javis_chat_read Read the last messages of a chat Any
javis_chat_send Post into a chat as if the owner typed it (no id opens a new chat), wait for the answer Full only
javis_chat_result Read the answer when Javis takes long Any
javis_chat_models List the models Javis can run and the effort levels; with id, the model a conversation uses now Any
javis_chat_updates Return every unread result of work sent with javis_chat_send, even in a new chat Any
javis_chat_note Save a note of the outside chat: what the owner said and decided (since 0.441.0) Draft, Full
javis_sync_setup Turn on Javis Sync on a coding agent’s machine: returns one install command the AI runs Draft, Full
javis_brains List the brains: name, path, the default brain, the brain used last Any
  • Picking the brain (#1726): claude.ai cannot send a header, so it cannot pick a brain that way. Every Gate tool that reads or writes a brain (files, notes, tasks, reminders…) takes an optional brain: a brain’s name (case and accents ignored) or its path, matched only against the brains on this machine; an unknown name is refused with the list of valid names. Without brain the Gate uses the Default brain for Javis Gate the owner picks on the Javis Gate card of the Connections page; “Brain used last” keeps the old behaviour (the brain of the chat touched last). Every write result says which brain it used, and the Gate’s instructions tell the AI to ask the owner which brain before writing when there are several. The rules live in server/gate_brain.py.

  • A posted message runs exactly like a typed one: it goes through the dashboard’s own chat loop, so the answer streams on every open tab, has a Stop button, is saved to History, written to memory/conversations and fed to self-learning. Its bubble is labelled via ChatGPT or via Claude.

  • A chat that is answering takes the message as a follow-up, as when the owner types while Javis works.

  • Only the owner’s chats (main chat, partner chats). Customer chats and team chats can’t be read or posted to.

  • A note does not run Javis: javis_chat_note only saves, so it costs Javis’s brain nothing, yet it goes through the same path as a chat turn: History, conversation log and self-learning. Each outside chat gets its own conversation From ChatGPT: </strong> (in the interface language); with an <code>id</code> the note goes into that Javis chat instead. Javis can’t read ChatGPT’s or Claude’s history, so this is how the outside AI sends over what is worth keeping.</p> </li> <li> <p>These tools are <strong>never</strong> in Javis’s own toolset: they appear only when the package’s door calls <code>mcp_hub.tra_loi_jsonrpc(..., gate={"source": "<AI name>"})</code>.</p> </li> </ul> <h3 id="saving-claude-code-and-codex-sessions-automatically-javis-sync">Saving Claude Code and Codex sessions automatically (Javis Sync)</h3> <p>A coding agent busy writing code almost never calls <code>javis_chat_note</code> by itself. <strong>Javis Sync</strong> (<code>tools/javis-sync/javis_sync.py</code>) does it automatically: it runs on the machine with Claude Code or Codex, as Claude Code’s <strong>Stop hook</strong> and Codex’s <strong>notify</strong> program. After each turn it sends the owner’s prompt and the agent’s final answer (not the tool calls in between) to <code>POST /chat/external</code> on Javis.</p> <ul> <li>Each outside session gets its own conversation: <strong>From Claude Code: <project folder>: <first prompt></strong> or <strong>From Codex: …</strong>, saved through the normal chat path, so it lands in History, <code>memory/conversations</code> and self-learning. Javis runs no model for it and spends no quota.</li> <li>API keys in the text are masked before saving. Very long text is cut, with a line saying how much is missing.</li> <li>When Javis is off or unreachable, unsent turns are kept and sent on the next run; a turn Javis already has is skipped, never duplicated.</li> <li>The hook never breaks Claude Code or Codex: failures only go to <code>~/.javis-sync/sync.log</code>.</li> </ul> <p><strong>Setup: just connect Gate.</strong> As soon as Claude Code or Codex connects to Javis Gate, the Gate tells it to ask you once: “Turn on Javis Sync?”. Say yes and it calls the <code>javis_sync_setup</code> tool, runs the install command on its machine and reports back. No command to type, no token to copy. To turn it on later, tell it “turn on Javis Sync”.</p> <ul> <li>That tool creates a <strong>save-only</strong> token: it reaches <code>/chat/external</code> and nothing else, cannot run a chat turn and cannot read anything. It shows on the <strong>Integrations</strong> page, <strong>API tokens</strong> tab, named “Javis Sync (Claude Code)”; revoke it there.</li> <li>Needs the Draft or Full level of the Gate door. Javis’s address comes from the domain in <strong>Settings</strong> (or <code>DOMAIN_NAME</code>); when none is set, the AI takes it from the Gate address it connected to.</li> <li>Needs Python 3.8 or newer on that machine. Sessions already open pick the hook up after Claude Code or Codex restarts.</li> </ul> <p>Manual setup (a machine not connected to Gate): create a token on the <strong>Integrations</strong> page, <strong>API tokens</strong> tab, then:</p> <pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="bash"><code><span class="line"><span style="color:#B392F0">curl</span><span style="color:#79B8FF"> -fsSLO</span><span style="color:#9ECBFF"> https://git.javisos.com/javis-os/raw/tools/javis-sync/javis_sync.py</span></span> <span class="line"><span style="color:#B392F0">python3</span><span style="color:#9ECBFF"> javis_sync.py</span><span style="color:#9ECBFF"> install</span><span style="color:#79B8FF"> --url</span><span style="color:#9ECBFF"> https://</span><span style="color:#F97583"><</span><span style="color:#9ECBFF">your-javis-domai</span><span style="color:#E1E4E8">n</span><span style="color:#F97583">></span><span style="color:#79B8FF"> --token</span><span style="color:#9ECBFF"> jvs_...</span></span></code></pre> <p><code>install</code> tests the connection first and installs nothing on a wrong URL or token. It copies the script to <code>~/.javis-sync/</code>, adds the hook to <code>~/.claude/settings.json</code> and a <code>notify</code> line to <code>~/.codex/config.toml</code> (with a <code>.bak</code> backup). If Codex already had a notify program, it keeps running. Only one side: add <code>--claude</code> or <code>--codex</code>.</p> <ul> <li>The first turn of a Claude Code session also sends what was said before the install.</li> <li>Status: <code>python3 ~/.javis-sync/javis_sync.py status</code>. Remove: <code>... uninstall</code> (restores Codex’s previous notify).</li> <li>Never send one folder: add its path to <code>"exclude"</code> in <code>~/.javis-sync/config.json</code>. Pause one shell: <code>JAVIS_SYNC_OFF=1</code>.</li> </ul> <h2 id="quick-reference-of-buttons-and-states">Quick reference of buttons and states</h2> <table> <thead> <tr> <th>What you see</th> <th>Meaning / action</th> </tr> </thead> <tbody> <tr> <td>Switch on</td> <td>The plugin is on; with no status shown, its tools are available to the engine</td> </tr> <tr> <td>Switch off, dimmed row</td> <td>The plugin is present but off, exposing no tools</td> </tr> <tr> <td><strong>off by env</strong></td> <td>You turned the plugin on but this machine sets <code>JAVIS_ENABLE_USER_PLUGINS=false</code></td> </tr> <tr> <td><strong>Error</strong></td> <td>The manifest is broken or the code failed to load; the reason appears in the detail panel</td> </tr> <tr> <td><strong>on (not loaded)</strong></td> <td>A rare state: on but not loaded for some other reason. Reload the page, and if it persists check the server log</td> </tr> <tr> <td>The <strong>Yours</strong> / <strong>Javis Store</strong> / <strong>This brain</strong> tag</td> <td>The plugin’s source. Built-in plugins have no tag</td> </tr> <tr> <td>The <strong>By pack</strong> button</td> <td>The plugin comes with a Javis Store pack; turn it on, off or remove it in Javis Store</td> </tr> <tr> <td><strong>Read only</strong> / <strong>Writes files</strong> / <strong>Full access</strong></td> <td>The minimum permission level for the plugin’s tools to be allowed to run</td> </tr> <tr> <td>“3 commands”, “has a hook”</td> <td>How many tools the plugin provides, and whether it registers a hook</td> </tr> <tr> <td><strong>Commands Javis can call</strong> (detail panel)</td> <td>The names of the tools and hooks; these are the names the engine will call</td> </tr> <tr> <td><strong>Remove this tool</strong></td> <td>Removes the plugin from the main list; reinstall it from the <strong>Removed</strong> section</td> </tr> <tr> <td>The warning box at the top</td> <td>This machine turns user plugins off; built-in plugins keep working</td> </tr> </tbody> </table> <h2 id="tips">Tips</h2> <ul> <li>Before deciding to write a plugin, ask again: is what is missing the <strong>know-how</strong> or the <strong>action</strong>? Missing know-how means writing a skill, which is far cheaper and easier to change.</li> <li>Read <code>system/plugins/datetime-vn/plugin.py</code> as a starting example: it is short, pure standard library, and enough to illustrate a read tool. For a hook example, read <code>tool-audit</code>.</li> <li>Put plugins in the <strong>global</strong> folder unless there is a clear reason to bind one to a brain. Global does not depend on the brain, so switching brains keeps it usable.</li> <li>If you do not use a plugin, <strong>turn it off</strong> rather than deleting the folder, so turning it back on later is one click.</li> <li>Turning off unused plugins also shortens the tool list handed to the model, helping it pick the right tool.</li> <li>To see what capabilities Javis currently sees (agents, skills, workflows, loops, plugins), open the brain’s <code>Javis/index.md</code> file through the <strong>Files</strong> page; it is rebuilt every time you turn a plugin on or off.</li> </ul> <h2 id="common-problems">Common problems</h2> <ul> <li><strong>The plugin row reads “off by env”:</strong> this machine sets <code>JAVIS_ENABLE_USER_PLUGINS=false</code>. Remove that line from <code>.env</code> (or set <code>true</code>) and restart Javis. The variable is only read at startup.</li> <li><strong>The environment variable is set and it is still blocked:</strong> check that the <code>.env</code> file is in the project root, that the line has no leading <code>#</code>, and that the value is <code>true</code> (or <code>1</code>/<code>yes</code>/<code>on</code>). On Docker, set the variable in the container’s Environment section rather than in a file on the host.</li> <li><strong>A newly dropped plugin does not appear on the page:</strong> the folder must be <strong>directly</strong> inside the plugins folder (no extra nesting) and must contain <code>plugin.py</code> (or <code>__init__.py</code>). Without that, Javis does not consider it a plugin. The folder name must also be a valid slug (lowercase, no diacritics).</li> <li><strong>The plugin shows “Error” with “plugin.py missing”:</strong> the folder has only <code>plugin.yaml</code>. Add the code file.</li> <li><strong>The plugin shows “Error” with “manifest error: …”:</strong> <code>plugin.yaml</code> has invalid YAML. Most often a description containing a colon without quotes.</li> <li><strong>The plugin shows “Error” with “no register(ctx) function”:</strong> <code>plugin.py</code> has no <code>register</code> function, or you named it something else. It must be named exactly <code>register</code> and take one parameter.</li> <li><strong>The plugin shows “Error” with a Python error name (<code>ModuleNotFoundError</code>, say):</strong> the plugin code uses a library not installed in Javis’s Python environment. Install it into the virtual environment Javis actually runs in, then restart.</li> <li><strong>The plugin is running but the engine does not see the tool:</strong> most likely the tool name <strong>collides</strong> with an existing MCP or core tool. Javis does not let a plugin take a core tool’s place, so it skips the colliding tool and writes a line to the server log. Rename the tool in <code>plugin.py</code> (a private prefix is the safest approach). Core names that cannot be reused: <code>javis_connections</code>, <code>javis_read_file</code>, <code>javis_list_dir</code>, <code>javis_write_file</code>, <code>javis_use_skill</code>.</li> <li><strong>The tool returns <code>ERROR: tool '<name>' needs a higher permission level</code>:</strong> the run is permission-restricted. If it is a recurring job, raise that job’s mode (see <a href="/en/docs/recurring-jobs-and-reminders/">Recurring jobs and reminders</a>); if it is your own plugin, review the <code>min_mode</code> declared in <code>register_tool</code>.</li> <li><strong>The tool returns “not connected …”:</strong> the plugin needs a connection you have not attached. Follow the instruction in the error exactly, usually going to the <strong>Connections</strong> page (or <strong>Models</strong> for the image plugin).</li> <li><strong>Turning the switch on reports “plugin not found”:</strong> the list on screen is stale compared to disk (you just deleted or renamed the folder). Reload the page.</li> <li><strong>Turning the switch on reports “failed to write the manifest”:</strong> Javis cannot write to <code>plugin.yaml</code>, usually a folder permission issue or the file being locked by another program. See also <a href="/en/docs/troubleshooting/">Troubleshooting and FAQ</a>.</li> </ul> <h2 id="related">Related</h2> <ul> <li><a href="/en/docs/skills/">Skills</a> - when what you lack is know-how rather than running code.</li> <li><a href="/en/docs/connections-and-business-data/">Connections and business data</a> - attaching external data sources; the Meta Ads, Facebook Pages and Apify plugins take their tokens from here.</li> <li><a href="/en/docs/models-and-engines/">Models and engines</a> - why every engine can call plugin tools.</li> <li><a href="/en/docs/recurring-jobs-and-reminders/">Recurring jobs and reminders</a> - the three permission levels of background work, and the <code>javis-schedule</code> plugin.</li> <li><a href="/en/docs/zalo-agent-mcp/">Zalo Agent MCP</a> - Zalo now uses the MCP of Javis’s own <code>javis-zalo</code> CLI and no longer has its own plugin.</li> <li><a href="/en/docs/env-configuration/">.env configuration</a> - how to set an environment variable and restart.</li> <li><a href="/en/docs/agents-and-workflows/">Agents and Workflows</a> - Javis’s other kinds of capability.</li> </ul> </div></div><nav class="docs-pager" aria-label="Documentation contents"><a class="prev" href="/en/docs/agents-and-workflows/" rel="prev"><small>Previous</small>Agents and Workflows</a><a class="next" href="/en/docs/chatbot/" rel="next"><small>Next</small>Chatbot (a dedicated bot)</a></nav></article></main><footer class="site-footer" data-astro-cid-jo6i4kqk><div class="inner" data-astro-cid-jo6i4kqk><div class="who" data-astro-cid-jo6i4kqk><a class="brand" href="/en/" data-astro-cid-jo6i4kqk><img src="/logo.svg" alt="" width="28" height="28" data-astro-cid-jo6i4kqk><span data-astro-cid-jo6i4kqk>Javis<b data-astro-cid-jo6i4kqk>OS</b></span></a><p data-astro-cid-jo6i4kqk>A self-hosted AI agent, open source under the MIT license.</p></div><ul class="links" data-astro-cid-jo6i4kqk><li data-astro-cid-jo6i4kqk><a href="/en/blog/" data-astro-cid-jo6i4kqk>Blog</a></li><li data-astro-cid-jo6i4kqk><a href="/en/docs/" data-astro-cid-jo6i4kqk>Docs</a></li><li data-astro-cid-jo6i4kqk><a href="/about" data-astro-cid-jo6i4kqk>About</a></li><li data-astro-cid-jo6i4kqk><a href="https://git.javisos.com/javis-os" target="_blank" rel="noopener" data-astro-cid-jo6i4kqk>Source code</a></li><li data-astro-cid-jo6i4kqk><a href="/en/docs/changelog/" data-astro-cid-jo6i4kqk>Changelog</a></li><li data-astro-cid-jo6i4kqk><a href="https://git.javisos.com/javis-os/issues/new" target="_blank" rel="noopener" data-astro-cid-jo6i4kqk>Report a bug</a></li><li data-astro-cid-jo6i4kqk><a href="/en/rss.xml" data-astro-cid-jo6i4kqk>RSS</a></li><li data-astro-cid-jo6i4kqk><a href="/en/privacy/" data-astro-cid-jo6i4kqk>Privacy</a></li><li data-astro-cid-jo6i4kqk><a href="/en/terms/" data-astro-cid-jo6i4kqk>Terms</a></li></ul></div><p class="copy" data-astro-cid-jo6i4kqk>© 2026 <a href="https://nguyenminhquy.com" target="_blank" rel="noopener" data-astro-cid-jo6i4kqk>Nguyễn Minh Quý</a>. Javis OS is an open-source project.</p></footer></body></html>