Metadata-Version: 2.5
Name: bloom-launch
Version: 0.1.0a1
Summary: Scoped launcher for native coding harnesses
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.12
Requires-Dist: keyring<26,>=25.6
Description-Content-Type: text/markdown

# Bloom Launch

Launch Claude Code or OpenCode through Bloom from your project directory.
Bloom remembers your gateway connection and a separate model default for each harness.
Native settings persist in dedicated Bloom profiles. Native permission controls remain active.

## Install

Requirements: macOS, Python 3.12 or later, and an installed Claude Code or OpenCode executable on an absolute PATH entry.
Bloom does not install or upgrade either harness.

With [uv](https://docs.astral.sh/uv/getting-started/installation/):

```sh
uv tool install --python 3.12 'bloom-launch==0.1.0a1'
```

Or, with [pipx](https://pipx.pypa.io/stable/installation/):

```sh
pipx install --python python3.12 'bloom-launch==0.1.0a1'
```

These commands require version `0.1.0a1` to be available on PyPI.
The package name is `bloom-launch`. The installed command is `bloom`.
If your shell cannot find `bloom`, run `uv tool update-shell` or `pipx ensurepath` for your chosen installer.
Then open a new terminal.

## First launch

Use a Bloom gateway key with specific allowed model IDs. Ask your Bloom administrator for access.
The tested alpha credential path uses `BLOOM_GATEWAY_KEY`.
Your secret manager can supply this variable. Alternatively, enter the key privately in the default macOS **zsh** terminal:

```zsh
read -rs 'BLOOM_GATEWAY_KEY?Bloom gateway key: '
export BLOOM_GATEWAY_KEY
printf '\n'
```

Then launch from your project:

```sh
cd /absolute/path/to/project
bloom launch claude
# Or:
bloom launch opencode
```

Select a numbered model on the first launch of each harness.
Complete native setup, project trust, and permission prompts normally.
Later launches reuse the saved default and recheck access. Keep the credential variable available in each new terminal.
Bloom saves an environment reference, not the key value.

A saved credential source takes precedence over an inherited `BLOOM_GATEWAY_KEY`.
Without a source, Bloom offers hidden input backed by OS storage. Real OS-storage acceptance remains unverified for this alpha.
`--config` always requests a new key for OS storage; it does not select the environment credential path.

## Common commands

| Command | Purpose |
| --- | --- |
| `bloom --version` | Show the installed version |
| `bloom models` | List exact permitted IDs without inference or saved-state changes |
| `bloom launch claude` | Start Claude with its saved default |
| `bloom launch opencode` | Start OpenCode with its saved default |
| `bloom launch claude --model EXACT_ID` | Use another permitted model for this invocation |
| `bloom launch opencode --model EXACT_ID` | Use another permitted model for this invocation |

The default gateway is `https://gateway.bloomfactory.ai`. Add `--url ORIGIN` to select another gateway origin.
Use the full exact ID from `bloom models` for an override.
Listing does not save a prompted key. Launch setup saves the selected default.
OpenCode uses the main model for its small-model role unless you supply `--role small=EXACT_ID`.
Native model requests can incur provider charges.

## Alpha limits and troubleshooting

- Native coding-session checks used macOS 15.7.9 arm64, Claude Code 2.1.319, OpenCode 1.19.0, and `openai/gpt-5.6-luna` through its exact granted ID.
- Claude's tested tool path uses native one-time manual approval when the server-side auto-review check is unavailable.
- Other versions can pass inspection within Claude `>=2.1.312,<3.0.0` and OpenCode `>=1.19.0,<2.0.0`. These ranges do not establish tested coding-session support.
- Linux is not a qualified alpha target. Windows is outside this release's scope.
- Profiles persist under `${XDG_CONFIG_HOME:-$HOME/.config}/bloom/{claude,opencode}`. Personal native profiles are not imported.
- Unsupported policy, login, provider, automatic-command, or extension controls can block launch. Preserve the profile after a refusal; do not delete settings or history to bypass inspection.
- `--profile` and `--endpoint` select a separate ordinary route that currently cannot launch. Use the quick-launch commands above.
- Configuration isolation is not a sandbox. Trusted same-user code can access runtime credentials.
- Discovery does not verify model health, routing identity, billing, or support for every native feature.

When reporting a problem, include `bloom --version`, the native version, macOS version, and the error category.
Do not include keys, authorization headers, or raw native configuration.

## License

Bloom Launch uses the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
