# Beyond Default Claude: Running DeepSeek, MiniMax and GLM in Claude Code and Android Studio

DevFeed: [Beyond Default Claude: Running DeepSeek, MiniMax and GLM in Claude Code and Android Studio](<https://devfeed.tech/articles/beyond-default-claude-running-deepseek-minimax-and-glm-in-claude-code-and-android-studio-108419.md>)

Original publisher: [Read original article](<https://proandroiddev.com/beyond-default-claude-running-deepseek-minimax-and-glm-in-claude-code-and-android-studio-02a4f8117790?source=rss----c72404660798---4>)

Author: Subhankar Bag

Published: 2026-10-30T13:50:26Z

Content type: tutorial

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>)

Tags: [acp](<https://devfeed.tech/tags/acp.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [cc](<https://devfeed.tech/tags/cc.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [deepseek](<https://devfeed.tech/tags/deepseek.md>), [glm](<https://devfeed.tech/tags/glm.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [ide](<https://devfeed.tech/tags/ide.md>), [json](<https://devfeed.tech/tags/json.md>), [llm](<https://devfeed.tech/tags/llm.md>), [minimax](<https://devfeed.tech/tags/minimax.md>), [room](<https://devfeed.tech/tags/room.md>), [shell](<https://devfeed.tech/tags/shell.md>)

## AI overview

The article's central fix for provider settings leaking across Claude Code sessions is to give each provider its own `CLAUDE_CONFIG_DIR` profile and keep named API keys in a permission-restricted `credentials.env`, injected at launch. A shared `cc` launcher selects provider endpoints, models and keys for both terminal sessions and Android Studio's ACP agent. The ACP command requires an explicit provider, sends logs to stderr to protect its JSON-RPC stream, and checks that `npx` is available; Android Studio may need a full `npx` path and sign-out from Anthropic Console authentication. Separate profiles isolate configuration and history but still share project files and provider quotas, and start without the existing profile's history, plugins or `/config` choices. The author says model IDs and context limits change, and notes that some adapter versions may require `ANTHROPIC_API_KEY` instead of `ANTHROPIC_AUTH_TOKEN`. The setup was tested on Ubuntu.

## Source excerpt

One launcher, isolated profiles, named API keys, and a working ACP bridge for Android Studio. Tested on Ubuntu. I had a MiniMax session forty minutes into a Room migration refactor. In a second terminal I ran my little provider-switcher script to ask DeepSeek a quick question about a Gradle error. The switcher did what it always did: it copied settings.deepseek.json over ~/.claude/settings.json. The MiniMax session kept running, so I thought nothing of it. Then I restarted it the next morning with claude --resume, and it came back up talking to DeepSeek, with a model name DeepSeek had never heard of. The session was fine. My setup was the bug. This article is the fix: a single cc launcher that gives every provider its own Claude Code profile, keeps API keys out of every settings file, and plugs the same providers into Android Studio's ACP agent panel. TL;DR Problem Root cause Fix Providers overwrite each other Every launch shares ~/.claude/settings.json One CLAUDE_CONFIG_DIR profile per provider API keys scattered across JSON files Settings files were used as the key store Keys live only in credentials.env, injected as env vars at launch Switching keys means editing files No concept of a named key cc key use minimax backup Android Studio agent ignores your setup The IDE spawns the agent with its own environment, not your shell's cc acp <provider> as the agent command Two scripts drift apart The terminal launcher and IDE bridge each resolved keys their own way One script, two entry points Part 1: The TerminalRoot cause: one config directory, many providers Claude Code reads its settings, history, sessions and auth state from one directory, ~/.claude by default. Point it at an Anthropic-compatible provider and that choice lives in the same place as everything else. The common first attempt copies a provider file into place: Before # Every terminal shares ~/.claude. The last copy wins. case "$1" in minimax) cp settings.minimax.json ~/.claude/settings.json ;; glm) cp se