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
If your account has not completed identity verification, you must complete individual or enterprise identity verification before you use this feature. For more information, see Verify your identity - Individual account and Verify your identity - Enterprise account.
You can create up to 10 API keys during the public preview.
You can create API keys for projects to specify which virtualized Alibaba Cloud services and MCP images can be used.
Log on to the AgentBay console.
In the navigation pane on the left, click Service Management.
On the Service Management page, click Create API Key.
In the Create API Key dialog box, enter a name and click Confirm.
ImportantTo 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:
On the Service Management page, in the Actions column for the target API key, click Disable.
In the confirmation dialog box, review the information and click OK.
NoteAfter 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.
On the Service Management page, in the Actions column for the target API key, click Delete.
In the confirmation dialog box, review the information and click OK.
NoteAfter 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.
Log on to the AgentBay console.
In the navigation pane on the left, click Service Management.
On the Service Management page, in the Actions column for the target API key, click View MCP Address.
In the MCP Address dialog box, select the appropriate tab:
Windows
Linux
Browser
Code
Mobile
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.
On the Service Management page, in the Actions column for the target API key, click Change Policy.
On the Change Policy page, select the desired policy from the Available Policies for Association area.
Click Change Policy.
In the confirmation dialog box, review the information and click OK.
NoteThe policy change takes effect only for cloud desktops that connect after the change is made.