---
title: "Run Arcane across repositories"
type: how-to
kind: how-to
documentedFor: "1.14.0"
updated: "2026-10-30"
canonical: "https://arcaneai.net/docs/how-to/run-arcane-across-repos"
---

# Run Arcane across repositories

Set up a hub repository that tracks your ventures and a consumer repository for each project, sharing one set of spells across them.

## Prerequisites

- The `spell` command installed (see the [Quickstart](/docs/tutorials/quickstart)).
- A new git repository for the hub, and one for each project.
- An AI client that runs Arcane spells.

## Steps

1. In the hub repository, install Arcane as a hub.

   ```arcane
   spell init --profile full --role hub
   ```

   ```text
   ✦ Initialized with profile "full" — 214 files installed
   ```

2. In each project repository, install Arcane as a consumer.

   ```arcane
   spell init --profile full --role consumer
   ```

   ```text
   ✦ Initialized with profile "full" — 214 files installed
   ```

3. Commit in each repository.

   ```bash
   git status --short
   git add -A
   git commit -m "Add Arcane"
   ```

4. In the hub, create a venture for the project: its name, its type (`e-commerce`, `app`, `protocol`, `service` or `personal`) and one line of description. The spell also asks who owns it.

   ```arcane
   /spell-summon-venture Bakery Site | service | A website for a neighborhood bakery
   ```

   It creates `ventures/bakery-site/` and registers the venture in `ventures/registry.json`.

5. In `ventures/registry.json`, add the project repository to the venture's `repos` list; the spell leaves it empty. Commit the venture.

6. Install the spells once for every repository on this machine: they go to `~/.arcane/spells/`, with one skill per spell in `~/.agents/skills/` and one command per spell in `~/.claude/commands/`. Claude Code then runs these personal commands ahead of a repository's own copies ([Multi-repo](/docs/explanation/multi-repo) explains the tiers). Reload VS Code and start new Codex or Claude Code sessions so they see the new files.

   ```arcane
   spell init --user
   ```

   ```text
   ✦ Initialized the user tier — 42 spells, 84 client files recorded
   ```

## Verify it worked

Each repository records its role. In the hub, `.arcane.json` says so:

```bash
grep '"role"' .arcane.json
```

```text
  "role": "hub"
```

In a project repository, the same command shows `"consumer"`. `spell status --user` lists the user tier and the files it wrote for each client:

```arcane
spell status --user
```

```text
  Client files: 84 (42 Codex/Copilot skills, 42 Claude Code commands)
```

## Related

- How hubs, consumers and the user tier fit together, and how ideas move from the hub to a project: [Multi-repo](/docs/explanation/multi-repo).
- The `--role` and `--user` options: [`spell init`](/docs/reference/cli-init).
- The hub spells: [`spell-summon-venture`](/docs/reference/spell-summon-venture) and [`spell-manifest`](/docs/reference/spell-manifest).
