Using AI Agents
Custom Skills
Introduction
⚠️

Warning: Only run custom agent skills you trust.

Custom agent skills are a powerful feature of AnythingLLM, but they can also be dangerous if misused.

Always make sure to test your skills thoroughly before using them in a production environment & never install untrusted code on any machine.

Introduction to custom agent skills

AnythingLLM allows you to create custom agent skills that can be used to extend the capabilities of your @agent invocations. These skills can be anything you want from a simple API call to even operating-system invocations.

The sky is the limit! Depending on how you run AnythingLLM, you can create custom agent skills that can run extra processes like running a local Python script or, on Desktop, even operating-system invocations.

If it can be done in NodeJS, it can likely be done in AnythingLLM.

The current state of custom agent skills

️💡

Custom agent skills are newly supported in AnythingLLM and may have some bugs, quirks, missing features, unsupported features, etc.

Please report any feature requests or bugs you find to the GitHub repository (opens in a new tab).

  1. NodeJS programming experience is required to create custom agent skills. Go to the developer guide to get started.
  2. Custom agent skills must exactly match the requirements listed on this help page.
  3. There are built in functions and utilities to help you log data or thoughts for an agent.
  4. There is currently no established tooling for creating custom agent skills - so follow this guide if developing skills for AnythingLLM.
  5. All skills must return a string type response - anything else may break the agent invocation.

Availability

Custom agent skills are available in the Docker image since commit d1103e (opens in a new tab) or release v1.2.2 (opens in a new tab).

Custom agent skills are available in AnythingLLM Desktop version 1.6.5 and later.

Custom agent skills are not available in the AnythingLLM Cloud offering.

View loaded custom agent skills

You can view the loaded custom agent skills by opening the Agent Skills tab in the settings of AnythingLLM.

Any valid custom agent skills loaded into AnythingLLM will be displayed here.

See where to place your custom agent skills for more information.

Dynamic UI of custom agent skills

Custom agent skills can also have a dynamic UI inputs associated with them. This is useful for providing runtime arguments to your custom agent skills or configurable properties of them.

See how the dynamic UI for a custom agent skill is setup via the plugin.json file.