Albert Code can be used in text editors and IDEs that support Agent Client Protocol. Albert Code includes the albert-acp tool.
Once you have set up albert-code with the API keys, you are ready to use albert-acp in your editor. Below are the setup instructions for some editors that support ACP.
For usage in Zed, we recommend using the Albert Code Zed's extension. Alternatively, you can set up a local install as follows:
- Go to
~/.config/zed/settings.jsonand, under theagent_serversJSON object, add the following key-value pair to invoke thealbert-acpcommand. Here is the snippet:
{
"agent_servers": {
"Albert Code": {
"type": "custom",
"command": "albert-acp",
"args": [],
"env": {}
}
}
}- In the
New Threadpane on the right, select theAlbert Codeagent and start the conversation.
For using Albert Code in JetBrains IDEs, you'll need to have the Jetbrains AI Assistant extension installed
-
Open settings, then go to
Tools > AI Assistant > Agents. Search forAlbert Code, click install -
Open AI Assistant. You should be able to select Albert Code from the agent selector (if you're not authenticated yet, you will be prompted to do so).
- Add the following snippet to your JetBrains IDE acp.json (documentation):
{
"agent_servers": {
"Albert Code": {
"command": "albert-acp",
}
}
}- In the AI Chat agent selector, select the new Albert Code agent and start the conversation.
Add Albert Code in the acp_providers section of your configuration
{
acp_providers = {
["albert-code"] = {
command = "albert-acp",
env = {
MISTRAL_API_KEY = os.getenv("MISTRAL_API_KEY"), -- necessary if you setup Albert Code manually
},
}
}
}