# अकाउंट का अपने-आप स्विच होना

> auto_switch चालू होने पर, उपयोग सीमा पर रुके Claude Code session को ccam गुंजाइश वाले आपके किसी दूसरे अकाउंट पर ले जाता है और बातचीत वहीं जारी रखता है।

Source: https://ccam.dev/hi/features/auto-switch/ · Updated 2026-11-29

अगर `auto_switch = true` है (Linux और macOS) और Claude Code किसी session को उपयोग सीमा पर रोकता है, तो ccam उस session को ख़ुद दूसरे अकाउंट पर ले जाता है, और बातचीत आपकी किसी कमांड के बिना वहीं जारी रहती है। यह सुविधा प्रायोगिक है और डिफ़ॉल्ट रूप से बंद रहती है। इसे चालू करना आपके प्लान की शर्तों का उल्लंघन हो सकता है ([नीचे देखें](#anthropic-s-terms))। इसके बिना आप `ccam next --continue` या `/ccam:switch` से ख़ुद स्विच करते हैं ([सीमा पर काम जारी रखना](https://ccam.dev/hi/features/next.md))।

```console
ccam: personal hit its 5-hour limit; continuing this conversation as side
→ personal → side
  continuing "Fix the flaky tests" (about 182k tokens); prompt caches are not shared between organizations, so the first reply reads it all again; side does not share personal's history, so Claude Code copies it into side
```

**Team और Enterprise सीटें।** Team और Enterprise सीटों पर `auto_switch` आपका काम उसी संगठन की किसी दूसरी सीट पर ले जाता है, और यह Anthropic की शर्तों का उल्लंघन हो सकता है। इस पर भरोसा करने से पहले [FAQ](https://ccam.dev/hi/docs/faq.md#am-i-allowed-to-use-several-claude-code-accounts) पढ़ें और अपने संगठन और Anthropic से पूछ लें।

## इसे चालू करें

1. हर अकाउंट में [ccam plugin](https://ccam.dev/hi/docs/install.md#claude-code-plugin) चालू करें, और Claude Code 2.1.214 या उसके बाद का वर्ज़न इस्तेमाल करें। इन्हीं वर्ज़न में Claude Code plugin के hook को अपना process ID (`CLAUDE_PID`) देता है।
2. `config.toml` में सबसे ऊपर, यानी पहले `[[group]]`, `[[profile]]` या `[[folder]]` से भी ऊपर, यह सेटिंग जोड़ें:

   ```toml
   # ~/.config/ccam/config.toml
   auto_switch = true   # Linux and macOS; turns the relay on too
   ```

3. नए sessions ccam से शुरू करें: `ccam <name>` से, किसी शॉर्टकट से या डैशबोर्ड से। `auto_switch` [relay](https://ccam.dev/hi/features/next.md#relay) को भी चालू कर देता है, इसलिए ccam ख़ुद को Claude Code से बदलने की जगह हर interactive session के साथ-साथ चलता रहता है। इसके लिए हर session के साथ एक ccam process इंतज़ार में रहता है।
4. `ccam doctor` चलाएँ। `auto_switch` चालू रहने तक यह उन अकाउंट्स के बारे में चेतावनी देता है जिनमें ccam plugin नहीं है, और 2.1.214 से पुराने Claude Code वर्ज़न के बारे में भी; सीटों के लिए यह Anthropic का सीट वाला नियम दोहराता है ([जाँचें](https://ccam.dev/hi/features/doctor.md))।

Windows पर ccam इस सेटिंग को अनदेखा करता है, और `ccam doctor` यह बात बताता है। वहाँ `relay = true` होने पर `/ccam:switch` और `/exit` से बातचीत अब भी दूसरे अकाउंट पर जाती है।

## सीमा आने पर क्या होता है

1. Claude Code किसी turn को उपयोग सीमा पर रोकता है। plugin का hook गुंजाइश वाला कोई दूसरा अकाउंट चुनता है और Claude Code को बंद कर देता है।
2. session के साथ-साथ चल रहा ccam एक desktop notification दिखाता है (उन टर्मिनलों में जिनमें यह सुविधा है), जैसे `ccam: personal hit its 5-hour limit (resets 3:29am). Moving this conversation to side (12% of its 5 hours used, the least).`
3. ccam ऊपर वाले उदाहरण की पहली लाइन प्रिंट करता है और चुने गए अकाउंट से उस session के लिए `ccam next --continue` चलाता है। यह कमांड बाक़ी दो लाइनें प्रिंट करती है और Claude Code को session के विकल्पों, permission mode, effort level और agent के साथ शुरू करती है, ठीक वैसे जैसे relay करता है।
4. नया session एक तय संदेश के साथ शुरू होता है। स्विच के दौरान आपकी ओर से भेजा जाने वाला यही इकलौता संदेश है (`/ccam:switch` के बाद होने वाला स्विच कुछ नहीं भेजता):

```text
Your usage limit was reached and ccam moved this conversation to another account. Continue the task you were working on when the limit was reached; do not repeat work that is already complete.
```

अगर सीमा किसी subagent की वजह से आई थी, तो इसकी जगह यह संदेश जाता है, क्योंकि subagents, workflows और background commands पुराने session के साथ ही रुक गए थे:

```text
A subagent hit your usage limit and ccam moved this conversation to another account. The subagents, workflows and background commands that were running then have stopped, and their results may be missing: run again what the task still needs, then continue it; do not repeat work that is already complete.
```

अगर नया अकाउंट भी अपनी सीमा तक पहुँच जाए, तो वहाँ भी यही होता है। सीमा के रिकॉर्ड की वजह से यह सिलसिला किसी अकाउंट पर उसके रीसेट से पहले नहीं लौटता, इसलिए जब सभी अकाउंट भर जाते हैं, तो session आख़िरी अकाउंट पर ही रहता है।

शुरू हो चुके स्विच को रोकना हो, तो Claude Code के बंद होते समय Ctrl+C दबाएँ: ``ccam: switch cancelled. Run `ccam next --continue` later to continue the conversation.``

## ccam session को कब ले जाता है

ccam किसी session को सिर्फ़ तब दूसरे अकाउंट पर ले जाता है जब ये सारी शर्तें पूरी हों:

1. session ccam ने टर्मिनल में शुरू किया हो और ccam उसके साथ-साथ चल रहा हो। `auto_switch` चालू करने के बाद शुरू किए गए interactive sessions पर यह शर्त पूरी होती है। जो session इससे पहले, या ccam के पुराने वर्ज़न से, शुरू हुआ था, उसे ऐसा notification मिलता है जिसके आख़िर में ``This session started before auto_switch was on or under an older ccam, so ccam cannot move it: type /exit, then run `ccam next --continue`.`` लिखा होता है। बिना निगरानी वाले sessions (`-p` runs और background sessions), `claude remote-control` और ccam के बिना शुरू हुआ Claude Code कभी दूसरे अकाउंट पर नहीं जाते।
2. अकाउंट में ccam plugin चालू हो और उसमें Claude Code 2.1.214 या उसके बाद का वर्ज़न चल रहा हो।
3. Claude Code ने मना हुई request को, रीसेट के समय के साथ, बातचीत में लिखा हो, और वह request उस अकाउंट की 5 घंटे, साप्ताहिक, Opus, Sonnet या Fable वाली सीमा की वजह से मना हुई हो।
   - जब कोई Fable मॉडल अपना साप्ताहिक हिस्सा ख़त्म कर चुका हो, तो Claude Code `You've hit your Fable limit` या `You're out of usage credits` कहता है, और मना हुई request में Fable वाले हफ़्ते का ज़िक्र होता है। यह Fable की सीमा है, और अगले अकाउंट के अपने Fable वाले हफ़्ते में गुंजाइश होनी चाहिए।
   - ख़र्च की सीमा, किसी दूसरी request पर usage credits का ख़त्म होना, संगठन की लगाई रोक, सर्वर का throttle और किसी API key की rate limit, इनमें से कोई भी session को दूसरे अकाउंट पर नहीं ले जाता।
   - subagent या workflow agent की सीमा भी गिनी जाती है, तब भी जब मुख्य बातचीत बस उसका इंतज़ार कर रही हो। अगर वह Opus, Sonnet या Fable की साप्ताहिक सीमा है, तो session तभी दूसरे अकाउंट पर जाता है जब बातचीत ख़ुद उसी मॉडल पर चल रही हो।
4. ccam को अकाउंट का प्लान पता हो, उसकी `.claude.json` से या उस जानकारी से जो `ccam login` ने दर्ज की थी। पता न हो, तो notification के आख़िर में `ccam does not know personal's plan, so auto_switch leaves this session.` आता है।
5. session Remote Control से जुड़ा न हो। दूसरे अकाउंट पर जाने के बाद वह उस app से दोबारा नहीं जुड़ता जिससे आप उसे चला रहे हैं, इसलिए session वहीं रहता है, और notification यह बात बताता है।
6. सीमा के रीसेट होने में अभी 15 मिनट से ज़्यादा बाक़ी हों। इससे कम इंतज़ार हो, तो ccam session को Claude Code के भरोसे छोड़ देता है: `ccam: personal hit its 5-hour limit, which resets in 9m; ccam leaves this session to wait for it.`
7. सीमा आने के बाद आपने कोई prompt टाइप न किया हो।
8. किसी दूसरे अकाउंट में गुंजाइश हो ([नीचे देखें](#which-account-it-moves-to))।

## session किस अकाउंट पर जाता है

ccam उसी तरह चुनता है जैसे [`ccam next --auto`](https://ccam.dev/hi/docs/account-selection.md#choosing-by-usage) चुनता है, यानी `auto_max_usage`, `auto_strategy` और बातचीत के मॉडल के हिसाब से, और सिर्फ़ उन अकाउंट्स में से जो छोड़े जा रहे अकाउंट की तरह के हों: उसी Team या Enterprise संगठन की कोई दूसरी सीट, या कोई दूसरा व्यक्तिगत प्लान (Pro या Max)। `cross_org` और `--cross-org` यहाँ लागू नहीं होते। उस अकाउंट के लिए ये बातें भी ज़रूरी हैं: वह ऐसे लॉगिन से लॉग इन हो जिसे Claude Code renew कर सके, उसका प्लान ccam को पता हो, उसमें usage credits बंद हों, उसने Claude Code में इस फ़ोल्डर पर भरोसा किया हो, और अगर बातचीत किसी agent के रूप में चल रही है, तो वह उस agent को साझा करता हो। सभी शर्तों की सूची [ccam अकाउंट कैसे चुनता है](https://ccam.dev/hi/docs/account-selection.md#when-auto-switch-chooses) में है।

जिस विंडो का [सीमा का रिकॉर्ड](https://ccam.dev/hi/features/usage.md#the-limit-record) मौजूद है, वह भरी हुई मानी जाती है, और जिस अकाउंट पर पिछले 2 मिनट में कोई दूसरा session गया है, वह बाक़ियों के बाद आता है।

## जब स्विच नहीं होता

जब किसी दूसरे अकाउंट में गुंजाइश नहीं होती, तो स्विच नहीं होता: Claude Code सीमा को हमेशा की तरह सँभालता है, यानी session में इंतज़ार करता है या अपने विकल्प दिखाता है। notification बताता है कि कौन-सा अकाउंट सबसे पहले ख़ाली होगा, जैसे `ccam: personal hit its 5-hour limit (resets 3:29am). None of your other personal plans has room now; side frees up first, at 12:30am. Claude Code waits for personal here; /ccam:switch side after 12:30am moves it sooner.` सीटों के लिए इसमें `None of your other accounts in Acme has room now` लिखा होता है।

अगर अकाउंट के लिए ऊपर बताई आख़िरी शर्तें गुंजाइश वाले हर अकाउंट को बाहर कर दें, तो notification अकाउंट का नाम और कारण बताता है:

- `side has not trusted this folder yet, so the conversation was not moved there. Open the folder once as side to allow it.`
- `side has room but its usage credits are on, so auto_switch did not move the conversation there; /ccam:switch side moves it.`
- `This conversation runs as agent "reviewer", and side does not share personal's agents, plugins and settings, so auto_switch did not move it there.`

बातचीत किसी agent के रूप में चल रही है, यह hook को `agent` सेटिंग से पता चलता है, या उस पंक्ति से जिसमें Claude Code agent का नाम लिखता है; यह पंक्ति Claude Code बातचीत में समय-समय पर और session ख़त्म होने पर लिखता है। अगर अब तक सिर्फ़ session का `--agent` उस agent का नाम बताता है, और चुना गया अकाउंट agents साझा नहीं करता, तो `ccam next --continue` कुछ भी शुरू नहीं करता और नोट बनाए रखता है। तब दूसरा desktop notification कहता है: ``ccam: this conversation runs as agent "reviewer", and side does not share personal's agents, plugins and settings, so ccam did not move it there.`` standard error पर आने वाली त्रुटि में यह भी जुड़ता है: ``Its note stays: `ccam next --continue` continues it later, and `ccam personal --resume <session id>` continues it as personal after the reset``।

## स्विच की क़ीमत

- Claude Code फिर से शुरू होता है, जिसमें कुछ सेकंड लगते हैं।
- Claude के शुरू किए background shells, dev सर्वर और agents पुराने session के साथ ही रुक जाते हैं।
- [`ccam next --continue`](https://ccam.dev/hi/features/next.md#continue) की तरह, नया अकाउंट अपने पहले जवाब के साथ पूरी बातचीत दोबारा पढ़ता है, और ccam बताता है कि बातचीत कितनी बड़ी है। स्विच में [`--brief`](https://ccam.dev/hi/features/next.md#brief) कभी इस्तेमाल नहीं होता।

## यह क्या कभी नहीं करता

`auto_switch` Claude Code के सीमा बताने से पहले कभी स्विच नहीं करता, background में आपके उपयोग पर कभी नज़र नहीं रखता, और किसी लॉगिन को न कभी कॉपी या renew करता है, न आगे किसी को देता है।

## Anthropic की शर्तें

Team और Enterprise सीटों पर `auto_switch` आपका काम उसी संगठन की किसी दूसरी सीट पर ले जाता है। Anthropic के सहायता केंद्र में लिखा है: "Each seat on a Team plan is assigned to one named individual, and only that person may use it" (Team प्लान की हर सीट एक तय व्यक्ति को दी जाती है, और सिर्फ़ वही व्यक्ति उसे इस्तेमाल कर सकता है) और "Users can't route their work through another user's account to use that user's remaining usage" (उपयोगकर्ता किसी दूसरे उपयोगकर्ता का बचा हुआ उपयोग इस्तेमाल करने के लिए अपना काम उसके अकाउंट से नहीं चला सकते) ([Team प्लान](https://support.claude.com/en/articles/12004354-purchase-and-manage-seats-on-team-plans#h_b8a7d07129); [Enterprise प्लान](https://support.claude.com/en/articles/13393991-purchase-and-manage-seats-on-enterprise-plans#h_fa6b9cade0) के लिए भी यही लिखा है)।

व्यक्तिगत प्लान (Pro, Max) के लिए Anthropic की शर्तें यह नहीं बतातीं कि सीमा आने पर आपके अपने अकाउंट अपने-आप एक-दूसरे की जगह ले सकते हैं या नहीं। [उपभोक्ता शर्तें](https://www.anthropic.com/legal/consumer-terms) Services तक "through automated or non-human means, whether through a bot, script, or otherwise" (bot, स्क्रिप्ट या किसी और स्वचालित या ग़ैर-मानवीय तरीक़े से) पहुँचने पर रोक लगाती हैं, जब तक Anthropic साफ़ तौर पर इसकी अनुमति न दे; और स्विच के समय ccam ऊपर दिए तय संदेशों में से एक आपकी ओर से भेजता है। 12 नवंबर 2026 से लागू [उपयोग नीति](https://www.anthropic.com/legal/aup) जिन बातों पर रोक लगाती है, उनमें "Intentionally bypass or interfere with capabilities, restrictions, or guardrails established within our products" (हमारे products में बनाई गई क्षमताओं, पाबंदियों या सुरक्षा उपायों को जान-बूझकर दरकिनार करना या उनमें दख़ल देना) भी शामिल है।

ccam यह दावा नहीं करता कि `auto_switch` इन शर्तों का पालन करता है। इसे चालू करने का फ़ैसला आपका है, और जोखिम भी आपका: अगर Anthropic को लगे कि शर्तें टूटी हैं, तो वह किसी अकाउंट को, या किसी Team या Enterprise संगठन की पहुँच को, निलंबित कर सकता है।

## संबंधित

- [सीमा पर काम जारी रखना](https://ccam.dev/hi/features/next.md)
- [ccam अकाउंट कैसे चुनता है](https://ccam.dev/hi/docs/account-selection.md)
- [हर अकाउंट का उपयोग](https://ccam.dev/hi/features/usage.md)
- [जाँच और मरम्मत](https://ccam.dev/hi/features/doctor.md)
