# Google Workspace 사용자를 위한 Gemini CLI 설정 방법 (feat. CLAUDE.md 재사용)

> Clean Markdown view of GeekNews topic #21662. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=21662](https://news.hada.io/topic?id=21662)
- GeekNews Markdown: [https://news.hada.io/topic/21662.md](https://news.hada.io/topic/21662.md)
- Type: news
- Author: [spilist2](https://news.hada.io/@spilist2)
- Published: 2025-06-26T10:20:47+09:00
- Updated: 2025-06-26T10:20:47+09:00
- Original source: [stdy.blog](https://www.stdy.blog/gemini-cli-setup-guide-for-google-workspace-users/)
- Points: 15
- Comments: 4

## Summary

Gemini CLI를 Google Workspace 사용자가 쓰기 위한 인증 과정을 설명합니다. 그리고 CLAUDE.md를 GEMINI.md로 재사용하는 팁도 공유합니다.

## Topic Body

### Google Workspace 사용자를 위한 Gemini CLI 설정 방법  
  
- Gemini CLI를 Google Workspace 사용자가 쓰려면 초반 인증 과정이 조금 까다로움  
- 그냥 하면 로그인이 안 된다고 나오고, GOOGLE_CLOUDE_PROJECT를 환경변수로 세팅해야 쓸 수 있다고 나옴  
  
아래 과정을 거쳐야 함  
  
1. Google Cloud Project 만들기  
2. Google Cloud Project에서 Gemini API 사용 설정  
3. Google Cloud Project에서 IAM 역할 부여  
4. Google Cloud Project의 ID 복사해서 환경변수에 넣기  
5. 터미널 재실행, gemini 재실행  
  
(블로그에 전체 내용을 스샷과 함께 정리해뒀습니다)  
  
### CLAUDE.md를 Gemini CLI에서 재사용하기  
  
- Claude Code와 마찬가지로, Gemini CLI를 제대로 쓰려면 GEMINI.md를 만들어야 함.  
- 이미 Claude Code의 `/init` 명령어를 이용해 만들어둔 CLAUDE.md 파일이 있어서 중복 작성하기 싫었음  
  
그래서:  
- `CLAUDE.md`에는 "See @AGENTS.md for guidelines."라고 씀  
- `AGENTS.md`에 기존 `CLAUDE.md` 내용을 옮김  
- Gemini는 글로벌 설정으로 contextFileName을 `AGENTS.md`로 수정  
  
이는 아래와 같은 기능들 때문에 가능함  
- Claude Code가 @을 통해 [다른 파일을 레퍼런스](https://docs.anthropic.com/en/docs/claude-code/memory#claude-md-imports)할 수 있고(제미니는 이걸 못함)  
- Gemini는 룰 설정을 위한 [파일명을 바꿀 수 있음](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#available-settings-in-settingsjson)(클로드는 이걸 못함)  
- 그리고 제미니도 클로드 코드처럼 [서브디렉토리의 컨텍스트 파일](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#example-context-file-content-eg-geminimd)을 읽을 수 있음. 즉 모듈별로 AGENTS.md 를 쓰는 것도 가능  
- 설정 후 클로드는 `/memory`, 제미니는 `/memory show` 명령으로 제대로 읽어오는지 확인 가능

## Comments



### Comment 40724

- Author: lamanus
- Created: 2025-06-28T20:04:42+09:00
- Points: 1

workspace쪽은 유료 아닌가요..?

### Comment 40778

- Author: spilist2
- Created: 2025-06-30T11:40:00+09:00
- Points: 1
- Parent comment: 40724
- Depth: 1

아 넵 구글 워크스페이스를 사용하는 기업 계정 사용자들을 위한 온보딩 글입니다!

### Comment 40777

- Author: boolsee
- Created: 2025-06-30T11:33:00+09:00
- Points: 1
- Parent comment: 40724
- Depth: 1

지금 시험해 보았습니다. 무료 Google 계정으로도 무료 사용이 가능합니다.

### Comment 40637

- Author: tujuc
- Created: 2025-06-26T11:02:58+09:00
- Points: 1

오홋 좋네요 :)
