Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs(cli): describe automatic shell setup as the installer default

jkomynobd6582a26636
diff --git a/INSTALL.md b/INSTALL.md
index 9a5b2a96d..9a43e1d7e 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -6,15 +6,26 @@ Install the CLI bundle in `~/.composio` and its entry point in `~/.local/bin`:
curl -fsSL https://composio.dev/install | sh
```
-The default installer changes no shell files and installs no agent plugins. If it reports that `~/.local/bin` is not available on `PATH`, run the shell-specific command it prints:
+The installer also configures your shell. It infers your login shell from `$SHELL` (`zsh`, `bash`, or `fish`) and writes a single managed `# Composio CLI` PATH block to the matching startup file so future terminals find `composio`. Open a new terminal, then run `composio login`.
+
+If your shell is not recognized, or shell setup fails, the binary install still succeeds and the installer prints a runnable command instead. The installer never installs agent plugins.
+
+## Choose or skip shell setup
+
+Set `COMPOSIO_INSTALL_SHELL` to force a specific shell, or to skip shell configuration entirely:
```bash
curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=zsh sh
curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=bash sh
curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=fish sh
+curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=none sh
```
-Shell setup delegates to `composio install --shell <shell>` and falls back to writing the same `# Composio CLI` PATH block inline when the installed CLI release predates that flag.
+Use `none` for an install-only run that changes no shell files. Reach for it in CI, Docker images, or when a dotfile manager owns your startup files.
+
+Shell-specific installer variants ([`install/zsh.sh`](install/zsh.sh), [`install/bash.sh`](install/bash.sh), [`install/fish.sh`](install/fish.sh)) pin `COMPOSIO_INSTALL_SHELL` to their shell before delegating to the base installer.
+
+Shell setup is idempotent: repeated installs keep exactly one managed PATH block per startup file and reconcile it when the bin directory changes. Setup delegates to `composio install --shell <shell>` and falls back to writing the same `# Composio CLI` PATH block inline when the installed CLI release predates that flag.
Pin a stable or beta release with `COMPOSIO_INSTALL_VERSION`, or pass the tag as a positional argument:
@@ -28,13 +39,13 @@ The positional argument takes precedence over `COMPOSIO_INSTALL_VERSION`.
| Variable or argument | Description | Default |
|---|---|---|
| `COMPOSIO_INSTALL_DIR` | Complete CLI bundle directory. | `$HOME/.composio` |
-| `COMPOSIO_BIN_DIR` | `composio` entry-point directory. | `$HOME/.local/bin` |
+| `COMPOSIO_BIN_DIR` | `composio` entry-point directory. Trusted input: anyone with write access to this directory can replace commands that future terminals run. | `$HOME/.local/bin` |
| `COMPOSIO_INSTALL_VERSION` | Stable or beta version, with or without the package prefix. | Latest stable release |
| `COMPOSIO_QUIET` | Set to `1` or `true` to hide progress output. | Unset |
| `COMPOSIO_DEBUG` | Set to `1` or `true` to print installer traces. | Unset |
| `COMPOSIO_INSTALL_HELP` | Set to `0` to hide post-install guidance. | `1` |
| `COMPOSIO_INSTALL_PLUGINS` | Set to `1` to install plugins for detected agent hosts. | `0` |
-| `COMPOSIO_INSTALL_SHELL` | Configure the requested shell (`zsh`, `bash`, or `fish`) after installation. | Unset |
+| `COMPOSIO_INSTALL_SHELL` | Shell setup mode: `auto` infers your login shell from `$SHELL`, `zsh`, `bash`, or `fish` force a specific shell, and `none` skips shell configuration. | `auto` |
| `--agent` | Log in as a Composio agent after installation. | Off |
| `--no-plugins` | Skip plugin setup. Kept for compatibility. | Off |
@@ -95,7 +106,7 @@ rm -rf \
"$install_dir/local-tools-binaries"
```
-Remove `# Composio CLI` PATH blocks from `~/.zshrc`, `~/.bashrc`, `~/.bash_profile`, `~/.bash_login`, or `~/.config/fish/config.fish` if you used a shell-specific installer. Blocks written by older installers contain an extra `export COMPOSIO_INSTALL_DIR=...` line after the marker; remove that line too.
+Remove the managed `# Composio CLI` PATH block from `~/.zshrc`, `~/.bashrc`, `~/.bash_profile`, `~/.bash_login`, or `~/.config/fish/config.fish`. Blocks written by older installers contain an extra `export COMPOSIO_INSTALL_DIR=...` line after the marker; remove that line too.
To purge credentials, configuration, caches, and every other CLI file, run `rm -rf "${COMPOSIO_INSTALL_DIR:-$HOME/.composio}"`. This is a complete reset and cannot be undone.
diff --git a/README.md b/README.md
index 40199301c..65bdff450 100644
--- a/README.md
+++ b/README.md
@@ -103,9 +103,10 @@ The `composio` CLI runs Composio from your shell and gives coding agents like Cl
```bash
curl -fsSL https://composio.dev/install | sh
-composio login
```
+The installer puts `composio` on your `PATH` for future terminals. Open a new terminal, then run `composio login`. See [INSTALL.md](INSTALL.md) for shell setup overrides, including `COMPOSIO_INSTALL_SHELL=none` for install-only runs.
+
Use `composio search` to find tools, `composio execute` to run them, `composio link` to connect accounts, and `composio run` to script workflows in TypeScript. See the [CLI docs](https://docs.composio.dev/docs/cli).
## Providers
diff --git a/docs/content/changelog/07-31-26-installer.mdx b/docs/content/changelog/07-31-26-installer.mdx
index 5835dd444..136e4b9e4 100644
--- a/docs/content/changelog/07-31-26-installer.mdx
+++ b/docs/content/changelog/07-31-26-installer.mdx
@@ -1,15 +1,16 @@
---
title: "Install the Composio CLI with a POSIX shell"
-description: "The CLI installer now runs on POSIX sh, keeps the release bundle separate from the entry point, and makes shell configuration opt-in."
+description: "The CLI installer now runs on POSIX sh, keeps the release bundle separate from the entry point, and configures your shell automatically."
date: "2026-07-31"
---
-The Composio CLI installer now separates the release bundle from the command you run, works with POSIX `sh`, and leaves shell configuration opt-in.
+The Composio CLI installer now separates the release bundle from the command you run, works with POSIX `sh`, and puts `composio` on `PATH` for future terminals automatically.
### What's new
- `curl -fsSL https://composio.dev/install | sh` installs the verified release bundle in `~/.composio` and creates `~/.local/bin/composio`.
-- The default flow does not edit shell files, install agent plugins, or log you in.
-- `COMPOSIO_INSTALL_SHELL=zsh|bash|fish` configures the requested shell explicitly, for example `curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=zsh sh`.
+- The default flow infers your shell from `$SHELL` and configures `PATH` for future terminals; set `COMPOSIO_INSTALL_SHELL=none` for an install-only run.
+- The installer does not install agent plugins or log you in.
+- `COMPOSIO_INSTALL_SHELL=zsh|bash|fish` forces a specific shell, for example `curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=zsh sh`.
- `COMPOSIO_INSTALL_VERSION`, `COMPOSIO_BIN_DIR`, `COMPOSIO_QUIET`, and `COMPOSIO_DEBUG` give you control over version, layout, and output.
- Existing `COMPOSIO_INSTALL_DIR` configurations keep their bundle-directory meaning.
diff --git a/docs/content/docs/claude-code-plugin.mdx b/docs/content/docs/claude-code-plugin.mdx
index 83f3448b3..296a15ad5 100644
--- a/docs/content/docs/claude-code-plugin.mdx
+++ b/docs/content/docs/claude-code-plugin.mdx
@@ -44,7 +44,7 @@ The first time, Claude installs the Composio CLI if it's missing, signs you in w
</Steps>
<Callout>
-Prefer to set things up ahead of time? Run `curl -fsSL https://composio.dev/install | sh`, then `composio login`.
+Prefer to set things up ahead of time? Run `curl -fsSL https://composio.dev/install | sh` to install the CLI and configure your shell, then open a new terminal and run `composio login`.
</Callout>
## What you can do
diff --git a/docs/content/docs/cli.mdx b/docs/content/docs/cli.mdx
index 947fc03cc..ad9a78ed8 100644
--- a/docs/content/docs/cli.mdx
+++ b/docs/content/docs/cli.mdx
@@ -10,17 +10,15 @@ Reach for it when you want Claude to act in your connected apps directly, instea
## Install
-Install the CLI with the POSIX shell installer:
+Install the CLI with one command:
```bash
curl -fsSL https://composio.dev/install | sh
```
-The installer downloads and verifies the release bundle in `~/.composio`, then creates the `~/.local/bin/composio` entry point. It does not edit shell files, install agent plugins, or log you in.
+The installer downloads and verifies the release bundle in `~/.composio`, creates the `~/.local/bin/composio` entry point, and configures your shell so future terminals find `composio` on `PATH`. It recognizes `zsh`, `bash`, and `fish` login shells from `$SHELL` and writes a single managed `# Composio CLI` block to the matching startup file. If your shell is not recognized, or shell setup fails, the CLI still installs and the installer prints a runnable command instead. It does not install agent plugins or log you in. To skip shell configuration entirely, see [Shell setup overrides](#shell-setup-overrides).
-If the installer reports that `~/.local/bin` is not on your `PATH`, run the command it prints for your shell — see [Configure your shell](#configure-your-shell) — and start a new shell.
-
-Log in after `composio` is available:
+Open a new terminal, then log in:
```bash
composio login
@@ -50,14 +48,14 @@ curl -fsSL https://composio.dev/install | sh -s -- @composio/[email protected]
| Variable or argument | Description | Default |
|---|---|---|
| `COMPOSIO_INSTALL_DIR` | Directory that receives the complete CLI bundle and `release-tag.txt`. | `$HOME/.composio` |
-| `COMPOSIO_BIN_DIR` | Directory that receives the `composio` entry-point symlink. Set it to `COMPOSIO_INSTALL_DIR` to use the legacy single-directory layout. | `$HOME/.local/bin` |
+| `COMPOSIO_BIN_DIR` | Directory that receives the `composio` entry-point symlink. Set it to `COMPOSIO_INSTALL_DIR` to use the legacy single-directory layout. Trusted input: anyone with write access to this directory can replace commands that future terminals run. | `$HOME/.local/bin` |
| `COMPOSIO_INSTALL_VERSION` | Stable or beta version to install, with or without the `@composio/cli@` prefix. | Latest stable release |
| `version-tag` | Positional stable or beta version. This overrides `COMPOSIO_INSTALL_VERSION`. | None |
| `COMPOSIO_QUIET` | Set to `1` or `true` to hide progress output. Warnings and errors still print. | Unset |
| `COMPOSIO_DEBUG` | Set to `1` or `true` to print download URLs and temporary paths. | Unset |
| `COMPOSIO_INSTALL_HELP` | Set to `0` to hide post-install guidance. | `1` |
| `COMPOSIO_INSTALL_PLUGINS` | Set to `1` to run `composio setup --target auto --yes --if-present` after installation. | `0` |
-| `COMPOSIO_INSTALL_SHELL` | Configure the requested shell (`zsh`, `bash`, or `fish`) after installation. See [Configure your shell](#configure-your-shell). | Unset |
+| `COMPOSIO_INSTALL_SHELL` | Shell setup mode: `auto` infers your login shell from `$SHELL`, `zsh`, `bash`, or `fish` force a specific shell, and `none` skips shell configuration. See [Shell setup overrides](#shell-setup-overrides). | `auto` |
| `COMPOSIO_GITHUB_OWNER` | GitHub owner used to resolve releases. | `ComposioHQ` |
| `COMPOSIO_GITHUB_REPO` | GitHub repository used to resolve releases. | `composio` |
| `COMPOSIO_GITHUB_URL` | GitHub web and release-download base URL. | `https://github.com` |
@@ -65,9 +63,9 @@ curl -fsSL https://composio.dev/install | sh -s -- @composio/[email protected]
| `--agent` | Log in as a Composio agent after installation. | Off |
| `--no-plugins` | Skip agent plugin setup. Kept for compatibility and now matches the default. | Off |
-### Configure your shell
+### Shell setup overrides
-Set `COMPOSIO_INSTALL_SHELL` when `~/.local/bin` is not already on `PATH`, or when you want the CLI to configure the requested shell explicitly.
+By default the installer infers your login shell from `$SHELL` and configures it. Set `COMPOSIO_INSTALL_SHELL` to force a specific shell instead:
<Tabs groupId="shell" items={['zsh','bash','fish']} persist>
<Tab value="zsh">
@@ -93,7 +91,15 @@ This configures `~/.config/fish/config.fish` and delegates setup to `composio in
</Tab>
</Tabs>
-Shell setup is idempotent. It falls back to writing the same PATH block inline when you pin an older CLI release that does not support `composio install --shell`.
+Set `COMPOSIO_INSTALL_SHELL=none` for an install-only run that changes no shell files. Use it in CI, Docker images, or when a dotfile manager owns your startup files:
+
+```bash
+curl -fsSL https://composio.dev/install | COMPOSIO_INSTALL_SHELL=none sh
+```
+
+Shell-specific installer variants (`zsh.sh`, `bash.sh`, and `fish.sh` in the repository's [`install/` directory](https://github.com/ComposioHQ/composio/tree/next/install)) pin `COMPOSIO_INSTALL_SHELL` to their shell before delegating to the base installer.
+
+Shell setup is idempotent: repeated installs keep exactly one managed PATH block per startup file and reconcile it when the bin directory changes. Setup falls back to writing the same PATH block inline when you pin an older CLI release that does not support `composio install --shell`. Startup-file changes only affect future terminals; in the current one, either open a new terminal or run the absolute path the installer prints.
### Verify the installation
diff --git a/ts/packages/cli/AGENTS.md b/ts/packages/cli/AGENTS.md
index fbfa7c480..c8e8040dc 100644
--- a/ts/packages/cli/AGENTS.md
+++ b/ts/packages/cli/AGENTS.md
@@ -38,7 +38,7 @@ Each command uses `@effect/cli`'s `Command.make()` pattern. Top-level command fi
| `signup` | Create a Composio account |
| `upgrade` | Self-update binary from GitHub releases |
| `init` | Bootstrap a Composio project in the current directory |
-| `install` | Install local-tool integrations |
+| `install` | Set up shell integration (PATH and completions) |
| `generate {ts | py}` | Generate type stubs (auto-detects project language if no subcommand) |
| `agent` | Manage AI agent presets |
| `toolkits` | List / inspect / version toolkits |