---
title: "Use Muse Code with Keycloak — connector setup — AgentSky"
description: "Use Muse Code with the Keycloak connector on AgentSky. Connect the correct account, run a bounded first task, and verify permissions, cost and results."
url: https://agentsky.dev/agents/muse-code/connectors/keycloak
---

# Muse Code + Keycloak

Muse Code runs the task; the Keycloak connector supplies only the operations and resources allowed by the account you authorize. The Composer selects Muse Code, asks for Keycloak access before sending, and keeps both choices in one task draft.

[Repo](https://agentsky.dev/auth/start?returnTo=%2Fagents%2Fmuse-code%2Fconnectors%2Fkeycloak%3Fresume%3D1)

Connect Keycloak using the Connectors control before sending. Authorization opens separately and your draft stays here.

How the combination works

## Muse Code plans and executes. Keycloak supplies authorized app access.

Runs the task through its ACP harness in a persistent cloud workspace while the selected AgentSky model supplies reasoning and generation.

Open Source Identity and Access Management.

- Muse Code Owns the task loop, model calls, cloud computer, tool choices, progress and final result.
- Keycloak connector Supplies the currently exposed operations for the authorized Keycloak account. It does not promise every feature in the Keycloak product.
- Permission boundary The connected identity, granted provider scopes, organization policy, resource sharing and the task's explicit instruction all constrain what Muse Code can do.

Setup and first task

## Connect one Keycloak account and verify one known resource.

The Composer preselects Muse Code with Muse Spark 1.2. Start read-only when possible, then expand to write operations only after the account and resource boundary are clear.

01

### Open the Muse Code Composer

The Composer above carries Muse Code, Muse Spark 1.2, and Keycloak. Add a precise target and expected result; the draft stays on this page during sign-in or connector authorization.

02

### Authorize the intended Keycloak account

Review the Keycloak account, workspace and permissions on the authorization screen. Your organization's policies or administrator approval may limit which resources the connection can access.

03

### Run and verify a bounded task

Name one Keycloak resource you can already access and ask the agent to check whether a read operation is available. If it is, retrieve and summarize that resource without changing it. If it is not, ask the agent to explain the missing operation or permission. Open the same resource in Keycloak and compare it with the agent's result. Check the account, resource identifier and current content before using the output for another task.

Access, cost and limits

## What to verify before scaling Muse Code + Keycloak

Tasks supported by this ACP harness through AgentSky's verified platform-model path.

Establish with the first run

- Muse Code and Muse Spark 1.2 remain selected after sign-in.
- Keycloak shows the intended connected account before the task is sent.
- The returned data matches one known source resource, with write actions excluded until separately authorized.

Still depends on your setup

- A catalog listing does not guarantee every Keycloak website feature is available as an agent operation.
- OAuth scopes do not replace organization policy, resource sharing or a precise task instruction.
- Total task cost can include model tokens, active computer time, paid tools, connectors and the provider's own plan or quota.

Verification and recovery

## Check Keycloak itself before trusting the result.

Open the same resource in Keycloak and compare it with the agent's result. Check the account, resource identifier and current content before using the output for another task.

- Connection troubleshooting If Keycloak access fails, check the connected identity, resource sharing and requested permissions. Reconnect an expired or revoked account in connector settings. If the connection is healthy but an operation is unavailable, changing accounts may not resolve it.
- Writes need explicit scope Name the target record and exact allowed change. A request to summarize, analyze or draft does not authorize sending, publishing or deleting.
- Re-check current state For decisions or follow-up writes, open the resource in Keycloak and check its current state. A successful earlier read may already be stale.

## Muse Code + Keycloak questions

## Related resources

[Muse CodeReview Muse Code's supported models, capabilities and browser Composer.](https://agentsky.dev/agents/muse-code) [Keycloak connectorReview the application-specific authorization and first-task guide.](https://agentsky.dev/connectors/keycloak) [Muse Code + Muse Spark 1.2Review the current default agent and model combination.](https://agentsky.dev/agents/muse-code/with/muse-spark-1.2) [PricingReview model, active-computer, tool and connector charges.](https://agentsky.dev/pricing)

## Run a bounded Keycloak task with Muse Code.

[Open the Composer](https://agentsky.dev/agents/muse-code/connectors/keycloak#composer)

## Frequently asked questions

### Can Muse Code use Keycloak on AgentSky?

Yes. Keycloak is in AgentSky's current managed connector catalog, and Muse Code can request its exposed operations after you authorize an account. The exact actions still depend on current connector operations and permissions.

### What does Muse Code do in this combination?

Muse Code runs the work loop with Muse Spark 1.2 selected by default: it interprets the task, chooses permitted operations, works in its cloud computer, and returns evidence. Keycloak remains the source application and permission boundary.

### Do I need to paste a Keycloak API key into the task?

No. This directory covers AgentSky's managed connector flow. Use the Connectors control and complete the provider authorization screen; never paste a password or secret into the Composer. Any provider plan or administrator approval remains separate.

### What can Muse Code do in Keycloak?

The agent can use the operations that the current connector exposes for the authorized account. Availability depends on the operation, required inputs, provider scopes, resource sharing and organization policy; the catalog does not promise every Keycloak feature.

### What happens if I am signed out or my balance is empty?

The shared Composer preserves the task, Muse Code, Muse Spark 1.2, and Keycloak through sign-in and connector authorization. Before dispatch, AgentSky checks the account and balance; if funding is required, it shows the billing path instead of silently changing the selections.

### How much does Muse Code + Keycloak cost?

There is no fixed connector-task price. AgentSky records model token usage and active cloud-computer time, plus any paid tools or connector operations. Keycloak's own subscription, API quota or provider charge is separate; review both products' current limits before a large workflow.

---

Markdown copy of https://agentsky.dev/agents/muse-code/connectors/keycloak. Every agentsky.dev page has one: add `.md` to its address or send `Accept: text/markdown`. Start from https://agentsky.dev/llms.txt.
