# CodePen (public Pens) — card for AI agents

Huge public collection of front-end demos (CSS/JS animations, shaders, hover effects); public Pens are MIT licensed by default.

Category: Web animation examples and effects (also: UI animation (Lottie, Rive), Video references and motion backgrounds) · maker CodePen · checked 2026-11-05 · style: playful, abstract, dark, minimal

## Price
- Price: Free tier
- Free tier: Viewing and copying public Pens is free; PRO adds private Pens and more.
- Pricing page: https://codepen.io/features/pro

## License
MIT (public Pens, by default) — https://blog.codepen.io/documentation/licensing/

- commercial: **yes** (Commercial use OK)
  > Public pens are automatically MIT licensed.
  (https://blog.codepen.io/documentation/licensing/)
- attribution: **no** (No credit needed)
  > Public pens are automatically MIT licensed.
  (https://blog.codepen.io/documentation/licensing/)
- in app: **yes** (Can ship inside your app)
  > Public pens are automatically MIT licensed.
  (https://blog.codepen.io/documentation/licensing/)
- redistribute: **yes** (Can pass the files on to your own users)
  > Public pens are automatically MIT licensed.
  (https://blog.codepen.io/documentation/licensing/)
- bots: **banned**
  > use any manual or automated software, devices, or other processes to “crawl,” “spider” or “screen scrape” any web pages contained in the CodePen Site;
  (https://blog.codepen.io/legal/terms-of-service/)

## Rules to follow
- Only public Pens are MIT; private Pens carry no license.
- Keep the author's MIT notice when redistributing.
- Libraries and images a Pen loads keep their own licenses.
- No crawling or scraping of codepen.io.

## Can an AI agent use it by itself?
**No** · copy-code: Agent copies the code, snippet or prompt from the page (no account)

## How an agent gets files
- The user opens a public Pen and copies (or pastes to the agent) its HTML/CSS/JS; the terms ban automated crawling, so the agent should not scrape codepen.io. (sign-in: none)
- Formats: html, css, js
- Not allowed: No scraping
- Not allowed: Third-party assets in Pens

Note on bots: the terms ban bots, scrapers and bulk downloading from the site. Do not script downloads from it; ask the user to download the files (or use the official API, if there is one) and add them to the project.

## How to connect
- Download only
- Website: https://codepen.io

## Notes
MIT applies to the Pen code itself; external resources (fonts, images, libraries like GSAP) are licensed separately.

## Lines to paste into your prompt or AGENTS.md

```
- CodePen (public Pens) (Web animation examples and effects, UI animation (Lottie, Rive), Video references and motion backgrounds). Huge public collection of front-end demos (CSS/JS animations, shaders, hover effects); public Pens are MIT licensed by default. Price: free tier; commercial use OK; no credit needed; no bots or bulk downloading (get files by hand or through the official API, if there is one). Style: playful, abstract, dark, minimal.
  Connect: download from https://codepen.io (no API).
  Get files: The user opens a public Pen and copies (or pastes to the agent) its HTML/CSS/JS; the terms ban automated crawling, so the agent should not scrape codepen.io (html, css, js).
  Not allowed: No scraping
  Not allowed: Third-party assets in Pens
  Rule: Only public Pens are MIT; private Pens carry no license.
  Rule: Keep the author's MIT notice when redistributing.
  Rule: Libraries and images a Pen loads keep their own licenses.
  Rule: No crawling or scraping of codepen.io.
  License: https://blog.codepen.io/documentation/licensing/ (checked 2026-11-05; details: https://agentgid.com/assets/codepen/)
```

## Links
- AgentGid page: https://agentgid.com/assets/codepen/
- Is it free for commercial use? https://agentgid.com/assets/codepen/commercial-use/
- Source: https://blog.codepen.io/documentation/licensing/
- Source: https://blog.codepen.io/legal/terms-of-service/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
