Skip to content

Overview

#Plugins

curl.md integrates into popular coding agents and tools for native URL-to-markdown workflows directly inside your agent or editor.

#Official plugins

Official plugins for curl.md, developed by the curl.md team and community.

#Build your own integration

If curl.md doesn’t support your favorite coding agent or tool, adding support is quite easy.

Likely you can one-shot support by pointing your agent to the docs and existing plugins, and letting it rip. For example, this prompt created the first version of the OpenCode plugin.

Read curl.md/docs and create an OpenCode plugin that uses curl.md to fetch URLs as markdown instead of the built-in webfetch tool.

If you feel the community would benefit from your custom curl.md plugin, you are welcome to open a pull request or share in the discussion forum.

#Use the API & SDK

The curl.md API and SDK make it simple to use curl.md in code.

If you are using TypeScript to create your plugin, the SDK is highly recommended because of its end-to-end type-safety support for responses and errors.

import { createClient } from 'curl.md'

const client = createClient()
const res = await client.fetch('example.com')

Check out the OpenCode plugin source and Pi extension source for comprehensive examples on how to use the TypeScript SDK.

If you aren’t using TypeScript, check out the API docs for more info on how to work with the API.

#Use the CLI

The curl.md CLI can also be used to power your own integration. The CLI uses the incur CLI framework for building agent-optimized CLIs that are easily navigable by agents. The CLI is a great option for integrating curl.md into your existing terminal environment and workflows.

Tip

The curl.md CLI source is also a great example on how to use the SDK.