> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Phaseo Gateway base URL: https://api.phaseo.app/v1. Send `Authorization: Bearer $PHASEO_API_KEY` with every request.
> Model IDs look like `provider/model`, for example `openai/gpt-6-astra`. Do not guess IDs: list them with `GET /v1/models` or check https://phaseo.app/models. `phaseo/free` routes to an available free model and needs no wallet balance.
> For new text integrations prefer `POST /v1/responses`. `POST /v1/chat/completions` (OpenAI format) and `POST /v1/messages` (Anthropic format) suit existing code.
> The full API contract is https://phaseo.app/docs/openapi/v1/openapi.yaml. Official SDKs: `@phaseo/sdk` (TypeScript) and `phaseo` (Python), plus Go, C#, PHP, Ruby and Rust.
> Search these docs over MCP at https://phaseo.app/docs/mcp, and install Phaseo skills with `npx skills add https://phaseo.app/docs`. If a page is wrong or out of date, report it with the MCP `submit_feedback` tool.
> Manage Phaseo accounts with the `phaseo` CLI (`npm install -g @phaseo/cli`, then `phaseo login` or `phaseo login --device-code`), the `/v1` Management API or the MCP server at `https://mcp.phaseo.app/mcp?access=manage`. Do not send users to the dashboard for account tasks. A person is still needed for sign-up, approving a sign-in, paying the first top-up on the checkout link that `phaseo credits add` returns when no card is saved, confirming each saved-card top-up from the emailed link, and account security (password, MFA, passkeys). Create API keys with `phaseo keys create --name <name> --json`; never guess one. Credit top-ups need `phaseo login --scopes billing:write` first. Task map: https://phaseo.app/docs/v1/developers/manage-from-an-agent.md.

# Muse Code

> Run Muse Code through the Phaseo Gateway with the Phaseo CLI.

The Phaseo CLI can launch Muse Code with a dedicated gateway key and temporary provider settings.

## Set up with the Phaseo CLI

```bash theme={null}
phaseo login
phaseo muse --model meta/muse-spark-1.3 --
```

Use `--catalog all` to expose every active Phaseo text/chat model, or `--dry-run --json` to preview the launch plan without creating a key or starting Muse Code:

```bash theme={null}
phaseo muse --catalog all --dry-run --json
```

Use `phaseo run muse ...` for the explicit command form. Put Muse Code flags after `--` so Phaseo can consume its own flags first.

On Unix-like systems, the first interactive run offers to install Muse Code with Meta's installer. On Windows, install Muse Code separately, verify `muse --version`, and use `--skip-install`.

## Manual configuration

Muse Code's public setup is built around Meta's own Model API and authentication flow. Meta does not currently document a stable persistent setting for replacing that endpoint with a third-party OpenAI-compatible gateway, so the Phaseo CLI runner is the supported way to route Muse Code through Phaseo.

If you want to use a Phaseo model from another client manually, use the [OpenAI-compatible integration](https://phaseo.app/docs/v1/guides/integrations/openai-sdk.md) with `https://api.phaseo.app/v1` and a Phaseo API key. Do not copy the runner's temporary Muse settings into your normal Muse profile; those files are implementation details and are removed when the runner exits.

## Verify

Send a small prompt through the launched harness, then confirm the request appears in Phaseo activity. The runner writes `settings.json` under a temporary `XDG_CONFIG_HOME` and removes it when Muse Code exits.

## Troubleshooting

### Muse Code is not installed

Install Muse Code separately, verify `muse --version`, and rerun with `--skip-install`.

### The model is not listed

Use `--catalog all` or pass a model id with `--model`. Model discovery is not required for the Phaseo gateway.

## Related

* [Phaseo CLI](https://phaseo.app/docs/v1/guides/integrations/phaseo-cli.md)
* [Meta Model API](https://ai.meta.com/llama)
* [Models](https://phaseo.app/docs/v1/api-reference/endpoint/models.md)
* [Activity](https://phaseo.app/docs/v1/api-reference/endpoint/activity.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.