Cc Gemini
Agent Buildingcc-geminiCc Gemini is an Agent Skill for agent building published in the mathruffian-dot/claude-code-lazy-packs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Claude Code 設定 Gemini 免費 API。說「設定 Gemini」「Gemini API」時載入。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/mathruffian-dot/claude-code-lazy-packs/blob/HEAD/skills/07-gemini/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cc-gemini, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
設定 Gemini 免費 API(Claude Code 版)
- 到 https://aistudio.google.com/apikey 建立免費 API key
- 存到
~/.gemini.env:GEMINI_API_KEY=你的key - 若要在 Claude 中使用,可透過 Skill 腳本呼叫
測試
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" -H "Content-Type: application/json" -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
⚠️ Gemini API key 在 AI Studio 建立,不需信用卡。