@framer/agent

中文文档
0.0.48发布于 2026/11/05TypeScriptES Module近 30 天下载 4万

CLI and skills for connecting your AI agents to Framer.

原始使用文档
文档目录14 节
  1. Getting Started
  2. 1. Installation
  3. 2. Connect to your projects
  4. 3. Write your first prompt
  5. Frequently asked questions
  6. Do I need to set up a Framer MCP server?
  7. Which AI agents are supported?
  8. Can the agent edit my live site?
  9. Does the agent have access to my CMS?
  10. Is it safe to give an agent access to my project?
  11. What happens if the agent makes a mistake?
  12. Will this consume my tokens or Framer tokens?
  13. Why does this use so many tokens?
  14. How do I get the latest releases if I have min-release-age …

Framer External Agents

outstretched palm with glassy framer logo floating above it

This package contains skills and a CLI tool to enable your favourite local agent to interact directly with Framer projects. It works with Claude Code, Cursor, Codex, and other AI agents.

See framer.com/agents/external to learn more.

Getting Started

1. Installation

Install or refresh the globally available skills:

npx @framer/agent@latest setup

This will install skills into ~/.agents/skills and ~/.claude/skills.

To remove these skills (for example, when switching to the Framer MCP), run npx @framer/agent@latest uninstall.

If you're new to node/npm or are struggling with setup, try pasting the following prompt into your agent:

Prompt
Goal:
Ensure Node.js v24 or newer is installed, then run the @framer/agent setup.

Check first:
Run `node --version`.

If Node.js is already installed and the major version is 24 or higher:
Do not install or modify Node.js. Continue to the @framer/agent setup.

If Node.js is missing or older than v24:
Install an official Node.js release with major version 24 or higher.

Install policy:
Use an existing package manager only if it is already installed.
Do not install Homebrew, winget, Chocolatey, Scoop, nvm, fnm, or another package manager just for this task.

Install options:
macOS:
- If Homebrew is already installed, use it to install Node.js.
- Otherwise use the official Node.js `.pkg` installer.

Windows:
- If winget is already installed, use it to install Node.js.
- Otherwise use the official Node.js `.msi` installer.

Linux:
- If the system package manager can install Node.js v24 or newer, use it.
- For Debian/Ubuntu or RHEL/Fedora-compatible systems, use the official NodeSource instructions for Node.js 24 or newer.
- Otherwise use the official Node.js standalone Linux binary for the detected architecture.

Official downloads:
Use the static latest Node.js release directory when downloading installers or binaries:
https://nodejs.org/download/release/latest/

Verify:
After installing, run `node --version` again.
Only continue if the major version is 24 or higher.

Final step:
Run `npx @framer/agent@latest setup`.

Success message:
If the setup completes successfully, tell the user they are now set up and what the user should do next:

Create a new thread, then copy your Framer project link:
- Browser: copy the address bar when the project is open.
- App: right-click the project tab, then choose "Copy Project Link".

2. Connect to your projects

In your AI agent, simply ask to work on your project, pasting the relevant project URL. You can also manually invoke the framer skill. This will connect to your Framer project and ask you to grant access to the project from your browser.

3. Write your first prompt

Tell your agent what to build, change, or fix. It works directly in your Framer project without the need to have it open.

Frequently asked questions

Do I need to set up a Framer MCP server?

No. Framer doesn’t require a separate MCP server. If you’re searching for a Framer MCP, the native Framer Agent connection gives Claude Code, Cursor, Codex, Gemini CLI, and other AI tools direct access to your canvas, components, CMS, and project context, without manual MCP setup.

Which AI agents are supported?

Framer Agent works with any local agent harness that can work with Skills and can call local tools, including Claude Code, Codex, Cursor, Gemini CLI, and Windsurf.

Can the agent edit my live site?

No. The agent works on your canvas in the Framer editor, not on your published site. Changes only go live when you choose to publish them yourself or tell the agent.

Does the agent have access to my CMS?

Yes. Once connected, the agent can read and write CMS collections, including creating, updating, and deleting items. You stay in control of what gets published.

Is it safe to give an agent access to my project?

The agent only has access to the projects you explicitly connect it to. It cannot access other projects, your account settings, or billing. You can revoke access at any time.

What happens if the agent makes a mistake?

Framer has branching, so every change made by an external agent automatically happens on a branch. You can undo changes, review the branch, and decide when to merge it back into your main branch.

Will this consume my tokens or Framer tokens?

Usage will only consume your own agent's tokens.

Why does this use so many tokens?

Token consumption for Framer Agent can be relatively high. For other work like web development tasks, your agent already has a lot of knowledge baked into its model and so is able to get to work straight away. For Framer Agent, we need to first teach your AI how to interact with Framer projects and provide a lot of context. This requires a certain amount of token usage before being able to undertake the task at hand.

How do I get the latest releases if I have min-release-age set in my npm config?

If your npm config delays new packages with min-release-age, you can make generated Framer Agent skills override that delay. This updates your installed skills immediately:

npx --min-release-age=0 @framer/agent@latest override-min-release-age enable

To restore your default npm behavior:

npx @framer/agent@latest override-min-release-age disable

版本与发布记录

@framer/agent 共发布 22 个版本,首次发布于 2026/06/09;过去 12 个月发布了 22 个版本。

版本发布日期距今
0.0.48latest2026/11/0511 天前
0.0.472026/10/151 个月前
0.0.462026/09/271 个月前
0.0.452026/09/181 个月前
0.0.442026/08/053 个月前
0.0.432026/08/053 个月前

关于 @framer/agent 的常见问题

@framer/agent 是什么?

CLI and skills for connecting your AI agents to Framer.

如何安装 @framer/agent?

在项目目录运行 npm install @framer/agent,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agent,可以用 npx agent 直接运行。

@framer/agent 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@framer/agent 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@framer/agent 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@framer/agent 可以商用吗?

@framer/agent 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@framer/agent 的下载量有多少?

根据 npm 官方下载统计,@framer/agent 在 2026/10/16 – 2026/11/14 这 30 天内被下载 39,805 次,日均约 1,327 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@framer/agent 还在维护吗?

最新版本 0.0.48 发布于 2026/11/05(11 天前);至今共发布 22 个版本,其中过去 12 个月发布了 22 个;首次发布于 2026/06/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。