# Set up memory your whole team's agents share

URL: https://memoryforaiagents.com/setup
Last updated: 2026-11-07
Published by Glen (https://tryglen.com), shared memory for coding agents.

> One person runs npx @tryglen/cli@latest install and signs in, which creates the organization. They invite teammates with glen invite <email>, and each teammate runs the same install command and joins. From then on every teammate's agents record into, and recall from, the same organization memory.

Shared memory gets useful the moment a second person records into it. So the order matters: set up the organization, invite people, then let each person add Glen to whatever agents they use.

1. **Install Glen and create the organization** Needs Node.js. The installer finds your coding agents, asks which ones get the plugin, and signs you in. The organization you create is where the team's memory will live.

   ```bash
   npx @tryglen/cli@latest install
   ```
2. **Invite your teammates** Send an invite to each person by email. Free covers up to 3 people, so a small team can try this without a card.

   ```bash
   glen invite teammate@example.com
   ```
3. **Each teammate installs and joins** They run the same install command on their machine and sign in to your organization. Their agents start recording into the shared organization from their next session.

   ```bash
   npx @tryglen/cli@latest install
   ```
4. **Everyone imports recent history** Each person backfills their own old local sessions, so the shared store starts with weeks of the team's work instead of nothing.

   ```bash
   glen import
   ```
5. **Search across the team** Ask about something a teammate worked on. The cited answer can draw on any session you are cleared to see.

   ```bash
   glen search "how did we fix the duplicate webhook deliveries"
   ```

## Adding Glen to each kind of agent

*How each teammate's agent gets the Glen plugin*

| Agent | How to add it | Docs |
| --- | --- | --- |
| Claude Code | Picked in the installer | [Claude Code docs](https://tryglen.com/docs/claude-code) |
| Codex | Picked in the installer; hooks go in `~/.codex/hooks.json` | [Codex docs](https://tryglen.com/docs/codex) |
| Cursor | Type `/add-plugin` in agent chat and add `https://github.com/Glen-Web-App/glen-cursor-plugin` | [Cursor docs](https://tryglen.com/docs/cursor) |
| Grok Build | `glen install --agent grok` | [Grok docs](https://tryglen.com/docs/grok) |
| Pi | `pi install npm:@tryglen/pi` | [Pi docs](https://tryglen.com/docs/pi) |
| Other MCP clients | Add `https://mcp.tryglen.com/mcp` | [MCP docs](https://tryglen.com/docs/mcp) |

Grok Build here means xAI's coding CLI, `grok`. Glen does not connect to the grok.com chat app; [Grok memory](https://grokmemory.dev) explains the difference.

> **Start your team's shared memory** Install, invite two teammates, and import a month of sessions. Free covers 15,000 memories. Install: `npx @tryglen/cli@latest install`. Start free at https://tryglen.com

## When the team grows

Free stops at 3 people and 15,000 memories. Personal raises the memory limit to 250,000 and adds integrations; Team removes the limits. Integrations are how Slack, GitHub, tickets and call transcripts join the same memory as your agents' sessions.

## Frequently asked questions

### How do I add a teammate to Glen?

Run glen invite with their email address. They install the CLI with npx @tryglen/cli@latest install, sign in and join your organization.

### Do all teammates need to use the same AI agent?

No. Each person adds Glen to the agents they use, and all of them share one organization memory.

### How many people can use Glen for free?

Up to 3 people and 15,000 memories, with no credit card required.
