Two ways to share a profile
Mibyan has two sharing paths, and they answer different questions. Distributions are the durable one; export files are the quick one.
Pick a distribution when the agent is a product you’ll keep improving and other people should track: a team’s reviewed internal agent, a community release, the same agent deployed to five machines.
Pick an export file when you just want someone to have your setup right now, or you’re moving to a new laptop. No repo, no manifest — run
/export in chat, hand over the file, they run /import. See Export and import a profile file.
The two aren’t exclusive. Plenty of authors dogfood a profile, /export it to a colleague for a second opinion, then publish it as a distribution once it’s worth versioning.
What this means
Before distributions, sharing a Mibyan agent meant sending someone:- Your SOUL.md
- A list of skills to install
- Your config.yaml, minus the secrets
- A description of which MCP servers you wired up
- Any cron jobs you scheduled
- Instructions for which env vars to set
.env.EXAMPLE → .env), and they can run my-research-agent chat or address it through Telegram / Discord / Slack / any gateway platform. When you push a new version, they run mibyan profile update my-research-agent and pull your changes — their memories and sessions stay put.
Why git?
We considered tarballs, HTTP archives, a custom format. None of them beat git:- Zero build step for authors. Push to GitHub; consumers install. There’s no “pack this, upload that, update the index” loop.
- Tags, branches, and commits are already the versioning system. A tag push does for us what “pack + upload a release” does for other tools.
- Updates are a fetch. Not a re-download of the whole archive.
- Transparent. Users can browse the repo, read diffs between versions, open issues against it, fork it to customize.
- Private repos work for free. SSH keys,
git credentialhelpers, GitHub CLI stored credentials — whatever auth your terminal is already set up for applies transparently. - Reproducibility is a commit SHA. The same thing pip and npm record.
When should you use a distribution?
Good fits:- You’re sharing a specialized agent — a compliance monitor, a code reviewer, a research assistant, a customer-support bot — with a team or with the community.
- You’re deploying the same agent to multiple machines and don’t want to copy files manually each time.
- You’re iterating on an agent and want recipients to pick up new versions with one command.
- You’re building an agent as a product — opinionated defaults, curated skills, tuned prompts — that other people should use as a starting point.
- You want to hand someone your setup once, right now. A distribution needs a repo, a manifest, and a
.gitignore./exportneeds none of that — see Export and import a profile file. Same for backing up or moving a profile to a new machine. - You want to share your desktop theme and layout. A distribution carries the agent — SOUL, config, skills, cron, MCP, plugins. An export made from the desktop app also carries the look: skin, light/dark mode, custom themes, rail color, and window layout.
- You want to share API keys alongside the agent.
auth.jsonand.envare deliberately excluded from distributions. Each installer brings their own credentials. (Export files strip them too.) - You want to share memories / sessions / conversation history. Those are user data, not distribution content. Never shipped. (Export files are different here — read what an export contains before sending one.)
The lifecycle: author to installer to update
Below is the full end-to-end flow. Pick the side you care about.For authors: publishing a distribution
Step 1 — Start from a working profile
Build and refine the agent like any other profile:Step 2 — Add a distribution.yaml
Create ~/.mibyan/profiles/research-bot/distribution.yaml:
name has a sensible default.
Step 3 — Create a .gitignore before the first commit
Create ~/.mibyan/profiles/research-bot/.gitignore with at minimum:
cron/jobs.json. Mibyan treats every other entry under cron/ as runtime state (locks, ledgers, output, suggestions, and future scheduler sidecars) and never installs or replaces it from a distribution. Root-level hidden entries under skills/ are likewise local Mibyan bookkeeping; hidden files inside an authored skill directory remain part of that skill.
Step 4 — Push to a git repo
The installer will additionally strip the hard-excluded paths even if an author somehow ships them — but that only protects installers, not the author.
Step 5 — Tag versioned releases
Every time the agent reaches a stable point, bump the version and tag:mibyan profile update research-bot will pull the latest.
What the repo looks like
A complete authored distribution:Distribution-owned vs user-owned
When an installer updates to a new version, some things get replaced (author’s domain) and some things stay put (installer’s domain). Defaults:
You can override the distribution-owned list in the manifest:
For installers: using a distribution
Install
- Clones the repo into a temporary directory.
- Reads
distribution.yaml, shows you the manifest (name, version, description, author, required env vars). - Checks each required env var against your shell environment and the target profile’s existing
.env. Marks each as✓ setorneeds settingso you know exactly what to configure. - Asks for confirmation. Pass
-y/--yesto skip. - Copies distribution-owned files into
~/.mibyan/profiles/research-bot/(or wherever the manifest’snameresolves). The hard-excluded paths are stripped during this copy, even if the author accidentally left them in the repo. - Writes
.env.EXAMPLEwith the required keys commented out — copy to.envand fill in. - With
--alias, creates a wrapper so you can runresearch-bot chatdirectly.
Source types
Any git URL works:Override the profile name
Two users wanting the same distribution under different profile names:Fill in env vars
After install, the agent’s profile contains a.env.EXAMPLE:
OPENAI_API_KEY exported in your ~/.zshrc) are marked ✓ set during install — you don’t need to duplicate them in .env.
Check what you installed
mibyan profile list also shows a Distribution column so at a glance you can see which of your profiles came from repos and which you hand-built:
Update
- Re-clones the repo from the recorded source URL.
- Replaces distribution-owned files (SOUL, mcp.json) and shipped skills, then merges
cron/jobs.jsonby job id. Your own jobs stay, shipped job definitions refresh without changing your paused/enabled choice, and newly shipped jobs arrive paused. - Preserves your
config.yaml— you may have tuned the model, temperature, or other settings. Pass--force-configto overwrite. - Never touches user data: memories, sessions, auth,
.env, logs, state.
Remove
Use cases and patterns
Personal: sync one agent across machines
You built a research assistant on your laptop. You want the same agent on your workstation.git commit && push) pulls onto the workstation with mibyan profile update research-bot. Memories stay per-machine — the laptop remembers its own conversations, the workstation remembers its own, they don’t collide.
Team: ship a reviewed internal agent
Your engineering team wants a shared PR-review bot with a specific SOUL, specific skills, and a cron that runs every PR through it.mibyan profile update pr-reviewer and everyone’s on the new version within minutes.
Community: publish a public agent
You built something novel — maybe a “Polymarket trader” or an “academic paper summarizer” or a “Minecraft server ops assistant.” You want to share it.Product: ship an opinionated agent
You built Mibyan-on-top — maybe a compliance-monitoring harness, a customer-support stack, a domain-specific research platform. You want to distribute it as a product.memories/, sessions/) never leaves their machine.
Ephemeral: one-off scripts on shared infra
You’re the ops lead. You want a temporary agent that diagnoses a production incident — a canned SOUL with the right tools and MCP connections — and runs on three on-call engineers’ laptops for the next week.Recipes
Pin to a specific version
Git ref pinning (
#v1.2.0) is planned but not in the initial release — install currently tracks the default branch. Track your installed version via mibyan profile info <name> and hold off on updates until you’re ready.Check what version you’re on vs. latest
Keep local config customizations through updates
The default update behavior already does this:config.yaml is preserved. To be safe, write your local tweaks to a file the distribution doesn’t own:
config.yaml or your SOUL as needed.
Force a clean re-install
Fork and customize
The standard git workflow — distributions are just repos:Test a distribution before pushing
From the author’s machine:Export and import a profile file
When you don’t need versioning, skip the repo./export packs a profile into a single .tar.gz; /import unpacks it as a new profile on the other end. Credentials are stripped on the way out.
Export
In the CLI, TUI, or desktop chat:-o, the CLI and TUI place the archive in Mibyan’s managed
profile-exports/ directory under the default Mibyan home, not in the current
working directory. This keeps routine exports out of source checkouts and
prevents a generated profile snapshot from being mistaken for a repository
source file. If the Mibyan home itself lives inside a Git checkout (some
Docker/custom deployments), the archive goes to ~/.mibyan-profile-exports/
or, failing that, a per-user directory under the OS temp dir — never into
the checkout. If no safe automatic location exists at all (every candidate
is inside a Git checkout), the export refuses with “No safe automatic
export destination” and you must pass -o with a path outside the
checkout. An explicit -o path is still honored
when you intentionally choose where to save the archive.
Or from a shell, same machinery:
- ⌘K → Export profile…
- Right-click a profile square in the sidebar rail → Export profile…
- The import button beside the rail’s + covers the other direction
desktop.json, carrying your skin, light/dark mode, any custom theme definitions the skin needs, the profile’s rail color, and your window layout. That’s why a profile shared from the desktop arrives looking like yours, not just behaving like yours.
Import
--name. Importing over an existing profile is refused — rename or delete the old one first. A shell wrapper (research-bot → mibyan -p research-bot) is created when the name doesn’t collide with an existing command.
Importing in the desktop app also applies the desktop.json overlay and drops you into the new profile on a fresh chat. Importing a desktop-made archive from the CLI is fine — the overlay file rides along on disk and applies the next time you open that profile in the desktop.
You cannot import as
default — that name is the built-in root profile (~/.mibyan). Pass --name something-else.What an export file contains
Always excluded, both profiles types:auth.json and .env. Your API keys never leave the machine.
The default profile (~/.mibyan) is exported through an allow-list — only known Mibyan artifacts, so an unrelated file sitting in your home directory can’t get swept in:
config.yaml, SOUL.md, MEMORY.md, USER.md, todo.json, system_prompt.md, AGENTS.md, CLAUDE.md, .cursorrules, skills/, plugins/, cron/, scripts/, sessions/, memories/, knowledge/, preferences/, and desktop.json when the desktop staged one.
A named profile (~/.mibyan/profiles/<name>) copies the whole directory minus auth.json / .env. That’s broader — if the profile has state.db, logs, or caches, they go in the archive too, and the file gets big.
What’s NOT in a distribution (ever)
The installer hard-excludes these paths even if an author accidentally ships them. No config option lets you override this — the safety guard is a regression-tested invariant:auth.json— OAuth tokens, platform credentials.env— API keys, secretsmemories/— conversation memorysessions/— conversation historystate.db,state.db-shm,state.db-wal— session metadatalogs/— agent and error logsworkspace/— generated working filesplans/— scratch planshome/— user’s home mount in Docker backends*_cache/— image / audio / document cacheslocal/— user-reserved customization namespace
Security and trust
Profile distributions are unsigned by default. You’re trusting:- The git host (GitHub / GitLab / wherever) to serve the bytes the author pushed.
- The author to not ship a malicious SOUL, skills, or cron jobs.
mibyan -p <name> cron list and resume only the jobs you trust. SOUL.md and skills ARE active as soon as you start chatting with the profile, so read them before your first run if you’re installing from someone you don’t know.
Rough analogy: installing a distribution is like installing a browser extension or a VS Code extension. Low friction, high power, trust the source. For internal company distributions, use a private repo and your normal git auth — nothing new to configure.
Future versions may add signing, a lockfile (.distribution-lock.yaml) with a resolved commit SHA, and a --dry-run flag that prints the diff before applying an update. None of those are shipping yet.
Under the hood
For implementation details, precise CLI behavior, and all flags, see the Profile Commands reference. The short version:install,update,infolive insidemibyan profile— not a parallel command tree.- The manifest format is YAML with a tiny required schema (
nameonly). - The installer uses your local
gitbinary for cloning, so any auth your shell already handles (SSH keys, credential helpers) works transparently. - After clone,
.git/is stripped — the installed profile isn’t itself a git checkout, avoiding “oh my, I accidentally committed my.envto the distribution’s git history” traps. - Reserved profile names (
mibyan,test,tmp,root,sudo) are rejected at install time to avoid collisions with common binaries.
See also
- Profiles: Running Multiple Agents — the base concept
- Profile Commands reference — every flag, every option
mibyan profile export/import— the CLI form of export files- Slash Commands reference —
/export,/import, and every other in-chat command - Using SOUL with Mibyan — authoring personalities
- Personality & SOUL — how SOUL fits into the agent
- Skills catalog — skills you can bundle

