AnythingLLM's built-in agent tools handle tasks such as document search and website scraping. A custom agent skill in AnythingLLM Docker on Linux adds a JavaScript function that the model can call and use in its reply.
The skill's manifest describes when the model should call it, while the handler performs the work. Its folder name must match the manifest's hubId, and the handler must return a string. A small lookup with no arguments or extra packages keeps that interface easy to inspect.
Custom skills run Node.js code with the AnythingLLM container's storage and network permissions. Only trusted code belongs in that directory, and enabling a skill makes it available across workspaces. The Orbit lookup returns synthetic information without reading files, launching processes, or contacting another service.
Start with a running AnythingLLM Docker installation, an existing workspace, and a working tool-capable agent model. Configure an Ollama connection if a provider is not yet available. The container name below is anythingllm; substitute your actual name. Node.js is bundled in the container, and this skill needs no npm or Yarn installation.
The screenshots use an orbit-tools local model alias, which can be replaced by your own working agent model. For a bounded CPU setup, qwen2.5:3b and an Ollama Modelfile with num_thread 2, num_ctx 2048, num_batch 64 and num_predict 256 provide a starting point. The matching AnythingLLM Ollama context limit is 2048; larger tool sets can need more context and memory.
Steps to create a custom agent skill in AnythingLLM:
- Create a new
orbit-codefolder in your working directory.$ mkdir orbit-code
An existing folder should be inspected before reuse so its files are not overwritten.
- Save the following manifest as
orbit-code/plugin.jsonin your text editor.- plugin.json
{ "active": false, "hubId": "orbit-code", "name": "Orbit code", "schema": "skill-1.0.0", "version": "1.0.0", "description": "Look up the synthetic Orbit dispatch code. Use this tool whenever asked for the current Orbit dispatch code.", "author": "Example developer", "author_url": "https://example.com", "license": "MIT", "setup_args": {}, "entrypoint": { "file": "handler.js", "params": {} } }
active: false leaves activation to the settings screen. entrypoint.file names the handler, and the empty params object declares a tool with no arguments. The author fields can identify your own project.
- Save the following function as
orbit-code/handler.jsin your text editor.- handler.js
module.exports.runtime = { handler: async function () { this.logger("orbit-code handler executed"); this.introspect("Orbit dispatch code retrieved by the custom skill."); return "Orbit dispatch code: OK-7731"; }, };
this.logger writes to the application log, while this.introspect supplies a visible execution message in the agent conversation. The returned string supplies the model's answer. A regular function preserves AnythingLLM's this context.
- Create the agent-skills directory inside the container's persistent storage.
$ docker exec anythingllm mkdir -p /app/server/storage/plugins/agent-skills
- Copy the complete
orbit-codefolder into the agent-skills directory.Installing a handler allows AnythingLLM to execute its code. Untrusted handlers could read application data or use the container's network access.
$ docker cp orbit-code anythingllm:/app/server/storage/plugins/agent-skills/
The resulting files must be plugins/agent-skills/orbit-code/plugin.json and plugins/agent-skills/orbit-code/handler.js, with no extra enclosing folder.
- Assign the installed skill to the image's UID/GID
1000:1000.$ docker exec --user 0 anythingllm chown -R 1000:1000 /app/server/storage/plugins/agent-skills/orbit-code
docker cp creates root-owned files by default. This scoped ownership change lets AnythingLLM save the skill's activation flag; it does not change ownership of unrelated storage.
- Open Settings from the workspace sidebar.

- Select Agent Skills in Instance Settings.

- Select Orbit code under Custom Skills.
A newly installed skill appears after revisiting or reloading this page. A missing entry usually means the folder, hubId, manifest, or handler path does not match.
- Enable Orbit code with its switch.
The list changes from Off to On automatically; there is no separate Save button. This setting applies across workspaces.
- Return to your workspace with the AnythingLLM logo.

- Start a New Thread in the workspace.
A fresh thread avoids reusing an agent session that loaded the earlier skill definitions. An existing active agent session can also be ended with /exit before another invocation.
- Send
@agent Use the Orbit code skill to look up the current Orbit dispatch code.in the chat.
@agent explicitly invokes the agent; tool-capable providers can also route ordinary prompts to tools in Agent mode. The model must support tool calling. For a small local model, its context window must fit the enabled tools and conversation; unused skills consume that space too.
- Expand the reply's Thought for section.
The elapsed time varies; the expandable section contains the agent's tool activity.
- Confirm that the conversation shows the custom skill's execution message and returns
OK-7731.
Orbit dispatch code retrieved by the custom skill. comes from the handler's introspection call. A reply without that execution message does not establish that the skill ran. If the skill is enabled but no invocation appears, the workspace agent's provider/model or tool selection needs attention; a fluent answer alone is insufficient.