anythingllm-embed

AnythingLLM Embed widget submodule for the main AnythingLLM application

179
Stars
97
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Mintplex-Labs/anythingllm-embed

快速入门

使用 anythingllm-embed 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

AnythingLLM Embedded Chat Widget

This is a submodule of AnythingLLM - the all-in-one AI Application

Please report any issues or feature requests to the main repo

[!WARNING] The core AnythingLLM team publishes a pre-built version of the script that is bundled with the main application. You can find it in the main repo here. You should only be working in this repo if you are wanting to build your own custom embed widget for AnythingLLM

This folder of AnythingLLM contains the source code for how the embedded version of AnythingLLM works to provide a public facing interface of your workspace.

The AnythingLLM Embedded chat widget allows you to expose a workspace and its embedded knowledge base as a chat bubble via a <script> or <iframe> element that you can embed in a website or HTML.

Security

  • Users will not be able to view or read context snippets like they can in the core AnythingLLM application
  • Users are assigned a random session ID that they use to persist a chat session.
  • Recommended You can limit both the number of chats an embedding can process and per-session.

by using the AnythingLLM embedded chat widget you are responsible for securing and configuration of the embed as to not allow excessive chat model abuse of your instance

Developer Setup

  • cd embed from the root of the repo
  • yarn to install all dev and script dependencies
  • yarn dev to boot up an example HTML page to use the chat embed widget.

While in development mode (yarn dev) the script will rebuild on any changes to files in the src directory. Ensure that the required keys for the development embed are accurate and set.

yarn build will compile and minify your build of the script. You can then host and link your built script wherever you like.

Integrations & Embed Types

<script> tag HTML embed

The primary way of embedding a workspace as a chat widget is via a simple <script>

<!--
An example of a script tag embed
REQUIRED data attributes:
  data-embed-id // The unique id of your embed with its default settings
  data-base-api-url // The URL of your anythingLLM instance backend
-->
<script
  data-embed-id="5fc05aaf-2f2c-4c84-87a3-367a4692c1ee"
  data-base-api-url="http://localhost:3001/api/embed"
  src="http://localhost:3000/embed/anythingllm-chat-widget.min.js"
></script>

<script> Customization Options

LLM Overrides

  • data-prompt — Override the chat window with a custom system prompt. This is not visible to the user. If undefined it will use the embeds attached workspace system prompt.

  • data-model — Override the chat model used for responses. This must be a valid model string for your AnythingLLM LLM provider. If unset it will use the embeds attached workspace model selection or the system setting.

  • data-temperature — Override the chat model temperature. This must be a valid value for your AnythingLLM LLM provider. If unset it will use the embeds attached workspace model temperature or the system setting.

Language & Localization

Style Overrides

  • data-chat-icon — The chat bubble icon show when chat is closed. Options are plus, chatBubble, support, search2, search, magic.

  • data-button-color — The chat bubble background color shown when chat is closed. Value must be hex color code.

  • data-user-bg-color — The background color of the user chat bubbles when chatting. Value must be hex color code.

  • data-assistant-bg-color — The background color of the assistant response chat bubbles when chatting. Value must be hex color code.

  • data-brand-image-url — URL to image that will be show at the top of the chat when chat is open.

  • data-greeting — Default text message to be shown when chat is opened and no previous message history is found.

  • data-no-sponsor — Setting this attribute to anything will hide the custom or default sponsor at the bottom of an open chat window.

  • data-no-header — Setting this attribute hides the header above the chat window.

  • data-sponsor-link — A clickable link in the sponsor section in the footer of an open chat window.

  • data-sponsor-text — The text displays in sponsor text in the footer of an open chat window.

  • data-position - Adjust the positioning of the embed chat widget and open chat button. Default bottom-right. Options are bottom-right, bottom-left, top-right, top-left.

  • data-assistant-name - Set the chat assistant name that appears above each chat message. Default AnythingLLM Chat Assistant

  • data-assistant-icon - Set the icon of the chat assistant.

  • data-window-height - Set the chat window height. must include CSS suffix: px,%,rem

  • data-window-width - Set the chat window width. must include CSS suffix: px,%,rem

  • data-text-size - Set the text size of the chats in pixels.

  • data-username - A specific readable name or identifier for the client for your reference. Will be shown in AnythingLLM chat logs. If empty it will not be reported.

  • data-default-messages - A string of comma-separated messages you want to display to the user when the chat widget has no history. Example: "How are you?, What is so interesting about this project?, Tell me a joke."

  • data-send-message-text — Override the placeholder text in the message input field.

  • data-reset-chat-text — Override the text shown on the reset chat button.

Behavior Overrides

  • data-open-on-load — Once loaded, open the chat as default. It can still be closed by the user. To enable set this attribute to on. All other values will be ignored.

  • data-show-thoughts — Allow users to see the AI's thought process, if applicable, in responses. If set to "false", users will only see a static "Thinking" indication without the explict thought content. If "true" the user will see the full thought content as well as the real response. Defaults to "false".

  • data-support-email — Shows a support email that the user can used to draft an email via the "three dot" menu in the top right. Option will not appear if it is not set.

<iframe> tag HTML embed

work in progress

<iframe> Customization Options

work in progress

常见问题

What is anythingllm-embed?

anythingllm-embed is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Mintplex-Labs. AnythingLLM Embed widget submodule for the main AnythingLLM application. It has 179 GitHub stars.

Is anythingllm-embed safe to use?

anythingllm-embed returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install anythingllm-embed?

Clone the repository with "git clone https://github.com/Mintplex-Labs/anythingllm-embed" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is anythingllm-embed written in?

anythingllm-embed is primarily written in JavaScript. It is open-source under Mintplex-Labs on GitHub, so you can review or fork the full source.

Are there alternatives to anythingllm-embed?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh anythingllm-embed against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情