All Products
Search
Document Center

AgentBay:Manage services

Last Updated:Dec 06, 2025

Service management lets you manage the lifecycle of API keys and change policies that control virtualized Alibaba Cloud services. This helps you securely schedule resources and optimize costs across platforms. Key status changes take effect in real time, ensuring secure access to Alibaba Cloud services and efficient resource management.

Create and manage API keys

Create an API key

Note

You can create API keys for projects to specify which virtualized Alibaba Cloud services and MCP images can be used.

  1. Log on to the AgentBay console.

  2. In the navigation pane on the left, click Service Management.

  3. On the Service Management page, click Create API Key.

  4. In the Create API Key dialog box, enter a name and click Confirm.

    Important

    To protect your data, do not share your API key with others.

View an API key

  • To view an API key: On the Service Management page, in the API Key Name/Value column for the target API key, click the 查看 icon.

  • To copy an API key: On the Service Management page, in the API Key Name/Value column for the target API key, click the 复制 icon.

Enable or disable an API key

  • To enable an API key: On the Service Management page, in the Actions column for the target API key, click Enable.

  • To disable an API key:

    1. On the Service Management page, in the Actions column for the target API key, click Disable.

    2. In the confirmation dialog box, review the information and click OK.

      Note

      After an API key is disabled, it can no longer be used to start services.

Delete an API key

You must disable an API key before you can delete it. Active API keys cannot be deleted. For more information, see Enable or disable an API key.

  1. On the Service Management page, in the Actions column for the target API key, click Delete.

  2. In the confirmation dialog box, review the information and click OK.

    Note

    After an API key is deleted, it is immediately disabled and cannot be viewed or modified.

Next steps

Get an MCP address

You must create an API key before you can get an MCP address. For more information about MCP access, see MCP tools.

  1. Log on to the AgentBay console.

  2. In the navigation pane on the left, click Service Management.

  3. On the Service Management page, in the Actions column for the target API key, click View MCP Address.

  4. In the MCP Address dialog box, select the appropriate tab:

    • Windows

    • Linux

    • Browser

    • Code

    • Mobile

  5. Click Copy Code.

Change the associated policy

If an associated policy does not meet your business needs, you can create a custom policy and associate it with the API key, or you can modify the associated policy. For more information about how to modify a policy, see Manage policies.

  1. On the Service Management page, in the Actions column for the target API key, click Change Policy.

  2. On the Change Policy page, select the desired policy from the Available Policies for Association area.

  3. Click Change Policy.

  4. In the confirmation dialog box, review the information and click OK.

    Note

    The policy change takes effect only for cloud desktops that connect after the change is made.