packages/docs/plugin-registry/platform/lens.md
Registry note:
@elizaos/plugin-lensis not currently listed in the Eliza plugin registry (plugins.json). The package may be available from npm or a separate elizaOS plugin repository. Verify availability before configuring.
The Lens plugin connects Eliza agents to the Lens Protocol, enabling social interactions on the decentralized social graph built on Polygon.
On-demand plugin. This plugin is resolved from the remote elizaOS plugin registry and auto-installs when its API key is detected. It is not included in Eliza's bundled
plugins.jsonindex.
Package: @elizaos/plugin-lens
# Requires the package to be available on npm
eliza plugins install lens
Obtain API credentials from the Lens Protocol developer portal.
{
"connectors": {
"lens": {
"apiKey": "your-lens-api-key"
}
}
}
Or use environment variables:
export LENS_API_KEY=your-lens-api-key
After installation, the plugin loads when apiKey is present in the connector config. Unlike bundled connectors, it does not auto-enable from config alone — it must be installed first.
| Variable | Required | Description |
|---|---|---|
apiKey | Yes | Lens Protocol API key |