# Octicons — card for AI agents

GitHub's own icon set (16/24 px) as SVG, with JS and React packages.

Category: Icons · maker GitHub · checked 2026-11-05 · style: outline, minimal

## Price
- Price: Free
- Free tier: Fully free.

## License
MIT — https://raw.githubusercontent.com/primer/octicons/main/LICENSE

- commercial: **yes** (Commercial use OK)
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software
  (https://raw.githubusercontent.com/primer/octicons/main/LICENSE)
- attribution: **no** (No credit needed)
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  (https://raw.githubusercontent.com/primer/octicons/main/LICENSE)
- in app: **yes** (Can ship inside your app)
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software
  (https://raw.githubusercontent.com/primer/octicons/main/LICENSE)
- redistribute: **yes** (Can pass the files on to your own users)
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software
  (https://raw.githubusercontent.com/primer/octicons/main/LICENSE)

## Rules to follow
- Keep the license notice when you copy the source files
- GitHub logo/mark icons are GitHub trademarks: use them only to refer to GitHub

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm install @primer/octicons (or @primer/octicons-react). No account. (sign-in: none)
- Formats: svg, jsx
- Not allowed: MIT notice in redistributed source

## How to connect
- Package (npm/PyPI)
- npm: `npm install @primer/octicons`
- Repository: https://github.com/primer/octicons
- Website: https://primer.style/octicons

## Numbers (AgentGid data)
- Gid Score: 43
- GitHub stars: 8,791
- Downloads last week: 618,966
- Used in 1 public projects set up for AI coding agents

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

```
- Octicons (Icons). GitHub's own icon set (16/24 px) as SVG, with JS and React packages. Price: free; commercial use OK; no credit needed. Style: outline, minimal.
  Connect: npm @primer/octicons.
  Get files: npm install @primer/octicons (or @primer/octicons-react). No account (svg, jsx).
  Not allowed: MIT notice in redistributed source
  Rule: Keep the license notice when you copy the source files
  Rule: GitHub logo/mark icons are GitHub trademarks: use them only to refer to GitHub
  License: https://raw.githubusercontent.com/primer/octicons/main/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/octicons/)
```

## Links
- AgentGid page: https://agentgid.com/assets/octicons/
- Is it free for commercial use? https://agentgid.com/assets/octicons/commercial-use/
- Source: https://primer.style/octicons
- Source: https://raw.githubusercontent.com/primer/octicons/main/LICENSE


## Octicons: GitHub's own icons for developer tools

Octicons is the free icon set GitHub draws for its own site, with small, clean pictures for things like branches, commits, bells and settings. Every icon comes in a small and a larger drawing, so it stays crisp at its size. You or your AI assistant add them to a React, Rails or plain web project, also in paid products.

### Where to use it
- Icons in a React app: Import each icon by name, such as an arrow or a bell, and place it in a menu or button. Only the icons you use go into your app.
- Pass, fail and warning marks: Show the state of a test run, a build or a task with a green check, a red cross or a yellow warning sign. GitHub's guide says which color goes with which icon.
- Icons in pages made on a server: Get an icon as a finished piece of page text on the server, with a size, a style class or a label. Useful for emails, server-made pages and small scripts.
- Icons on a Jekyll or Rails site: A blog or docs site built with Jekyll, or a Ruby on Rails app, gets the icons through ready add-ons instead of copying files by hand.
- A sidebar for an internal dashboard: Give each section of an admin or team dashboard its own icon, like home, inbox, people and settings, in one matching style. (idea, not from the official pages)
- Notes and warnings in project docs: Mark tips, warnings and steps in the documentation of a developer project with small icons that developers already know from GitHub. (idea, not from the official pages)

### How to start
- Add the React package to your project (there is also @primer/octicons for plain JavaScript and a Ruby gem).

```
npm install @primer/octicons-react
```

- Import an icon by its name with Icon at the end and put it on the page; it is 16 px by default and takes the text color.

```
// Import the component
import {ArrowRightIcon} from '@primer/octicons-react'
// Render the icon component
const MyComponent = () => <ArrowRightIcon />
```

- Without React, take the ready files from build/svg in the package, or call toSVG from the plain JavaScript package.

```
npm install @primer/octicons
```


### License
MIT license: free to use in personal and paid products, and you may change and share the files. Keep the copyright and license notice with copies. The GitHub logo icons follow GitHub's own logo rules.

### Good to know
- The set includes GitHub's own logos, which are trademarks. Use them only to point to GitHub, never as the logo of your product or site.
- Icons are drawn for fixed sizes of 12, 16 and 24 pixels. GitHub's guide advises against stretching them to other sizes.
- Do not let your users pick these icons as their own badges or labels; the guide advises emoji for that.
- An icon that carries meaning needs enough contrast with its background, at least 3 to 1.
- No account or key is needed. The icons come with the package and are drawn in your own app.

Checked 2026-11-09 against: https://primer.style/octicons, https://primer.style/octicons/code/, https://primer.style/octicons/design-guidelines/, https://primer.style/octicons/usage-guidelines/, https://github.com/primer/octicons/blob/main/README.md, https://github.com/primer/octicons/blob/main/LICENSE, https://github.com/primer/octicons/blob/main/lib/octicons_node/README.md, https://github.com/primer/octicons/blob/main/lib/octicons_react/README.md, https://github.com/logos, https://registry.npmjs.org/@primer/octicons/latest, https://registry.npmjs.org/@primer/octicons-react/19.42.0

### Mistakes to avoid
- Don't: import {LogoGithub, ArrowRight} from '@primer/octicons-react' → Do: import {LogoGithubIcon, ArrowRightIcon} from '@primer/octicons-react' (Every React export ends in Icon; in 19.42.0 there is no LogoGithub export, although one README example still writes it that way.)
- Don't: octicons.arrow-right.toSVG() → Do: octicons['arrow-right'].toSVG() (Names with a dash do not work with dot access in JavaScript.)
- Don't: Scaling the 16 px file up to 20, 32 or 48 px with CSS → Do: Use the 16 or 24 px drawing at its own size, or pass width/height to toSVG so it picks the 24 px drawing (The icons are drawn for fixed sizes and the guide says not to resize them.)
- Don't: <button><XIcon /></button> with no label anywhere → Do: <button aria-label="Close"><XIcon /></button>, or Primer's IconButton (Icons without a label are hidden from screen readers, so an icon-only button needs its own name.)
- Don't: Using the mark-github or logo-github icon as the logo of your app → Do: Use those icons only to link to GitHub or to show a GitHub integration (They are GitHub trademarks with their own usage rules.)

### Questions
- Can I use Octicons in a paid app or a client project? Yes. The MIT license allows use, copying, changing and selling, as long as the copyright and license notice stays with copies of the files.
- What size are the icons? Each icon is drawn at 16 px and most also at 24 px; a few have a 12 px drawing for tight spots. In React the default size is 16 px.
- Can I change the color? Yes. Icons take the color of the text around them by default; you can also pass a fill color.
- Can I use the GitHub logo icon as my own logo? No. GitHub's logos may be used to link to GitHub or show that your project works with GitHub, not as your own logo.
- Will screen readers read the icons? Not by default. An icon without a label is treated as decoration and hidden; add an aria-label when the icon alone carries the meaning.

---
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.
