> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 같은 머신에서 계정을 전환하려면 어떻게 해야 하나요?

같은 머신에서 두 개의 W\&B 계정을 관리하려면 저장소 외부의 파일에 API 키 두 개를 모두 저장한 다음, 런타임에 필요한 키를 로드하세요. 이렇게 하면 시크릿 키를 소스 제어에서 제외할 수 있습니다.

```python theme={null}
if os.path.exists("~/keys.json"):
    os.environ["WANDB_API_KEY"] = json.loads("~/keys.json")["work_account"]
```

***

<Badge stroke shape="pill" color="orange" size="md">[환경 변수](/ko/support/models/tags/environment-variables)</Badge>
