#Amp
First-party Amp plugin that routes Amp’s built-in read_web_page tool through curl.md and also adds a specific curl_md tool.
Important
The Amp Plugin API is still experimental. As a result, the curl.md Amp plugin may also change without warning.
#Quick Start
Install the plugin, launch Amp, and start curling.
Install plugin
Run the
@curl.md/amppackage installer:npx @curl.md/amp install --yesSuccessful installs create the Amp plugin shim in
~/.config/amp/plugins/curlmd.ts.Start Amp
Start Amp with plugins enabled via the
PLUGINS=allenv var:PLUGINS=all ampTip
Amp requires
PLUGINS=allto be set in order to load plugins. Add this to your environment so you do not need to prefix every Amp command manually.Use Amp
Now that Amp is running with the curl.md plugin, all you need to do is use Amp. To confirm everything is set up, try this out:
Read the curl.md Amp plugin docs and summarize how it works. https://curl.md/docs/plugins/ampAmp will automatically use curl.md to turn URLs you paste, or URLs it decides to fetch on its own, into markdown.
#Install
Run the @curl.md/amp npm package installer:
npx @curl.md/amp install --yesThis installs the package into Amp’s config directory and writes the plugin shim Amp loads from ~/.config/amp/plugins/curlmd.ts.
To update an existing install, rerun the installer at the latest version:
npx @curl.md/amp@latest install --yesIf you prefer to add the shim manually, create your own plugin entry in ~/.config/amp/plugins:
// @i-know-the-amp-plugin-api-is-wip-and-very-experimental-right-now
import plugin from '@curl.md/amp'
export default plugin#Usage
Ask for a page, paste links, or let Amp figure out what it needs to fetch.
#Prompting
Inside Amp, prompt like you normally would, for example:
Read the Cloudflare Agents docs and summarize the core concepts.
https://developers.cloudflare.com/agentsIn this example, Amp will use curl.md to fetch the page and return markdown optimized for agents.
You can also tell Amp to use a specific objective, keywords, or let it decide what to use on its own (it’s really good at this).
#Authentication
The plugin uses the same auth model as the CLI. Log in to connect the plugin to your curl.md account or organization.
curl.md auth loginFor non-interactive environments, set CURLMD_API_KEY.
#Tools
The plugin registers the following tools:
Both curl_md and the intercepted read_web_page tool accept the following inputs:
#Contributing
We welcome contributions to make the Amp plugin better. Feel free to create issues or pull requests on GitHub if there are issues or something could be improved.
Last updated: May 5 3:02 PM