Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
1Password in Practice: Secure API Keys for AI Coding Agents
New

1Password in Practice: Secure API Keys for AI Coding Agents

Learn from real breaches. Use 1Password and op run to keep plaintext API keys out of Claude Code, Codex & Antigravity
Created by神草 経知
Last updated 11/2026
English

What you'll learn

  • Explain, using major real-world breaches, why credentials are the entry point of attacks
  • Understand how 1Password works (Secret Key, zero knowledge) and design personal and team vaults
  • Use passkeys, 2FA, and Watchtower to find and fix reused or leaked passwords
  • Pass API keys without leaving plaintext using 1Password CLI secret references (op://) and op run
  • Use the same API key safely from three AI agents: Claude Code, Codex, and Antigravity
  • Keep secrets hidden from AI agents with deny rules, hooks, and key rotation

Course content

7 sections • 31 lectures • 1h 35m total length
  • Course introduction and goals2:50
  • Agenda and how the course works1:10
  • Course materials: Hands-on Lab Guide (PDF) and course files (ZIP)1:07

Requirements

  • A Windows 11 or macOS PC (being able to type commands one line at a time is enough)
  • A 1Password account (you can take the course with the 14-day free trial)
  • The AI agent sections use an Anthropic API key and Python 3.10 or later. You only need the agents you actually use.

Description

"It won't happen to us" no longer works. Data breaches keep making headlines around the world. This course uses recent large-scale breaches in Japan as concrete case studies:

  • Oct 2023, NTT Business Solutions: a former temp worker took customer data out of a call center system over a long period. About 9.28 million records were leaked.

  • Nov 2023, LY Corporation (LINE Yahoo): unauthorized access through a contractor exposed about 440,000 records, later revised to about 520,000.

  • Jun 2024, KADOKAWA: a ransomware attack leaked data on about 250,000 people. Stolen employee credentials are believed to have been the way in.

  • Jul 2024, Tokyo Gas: about 4.16 million records may have been leaked.

  • Spring 2025, brokerage account takeovers: a wave of fake websites stole IDs, passwords, and one-time passwords.

  • Sep 2025, Asahi Group Holdings: a ransomware attack seriously disrupted business operations.

The industries and company sizes differ, but many of these cases share one thing: the entry point of the attack was credentials. When an attacker signs in with a stolen ID and password, the system cannot tell them apart from the real user. And if you reuse passwords, a breach at a company you have nothing to do with can lead to takeovers of your email, your brokerage account, and even your company's SaaS apps.

AI agents mean even more secrets to protect. Once you start using AI agents such as Claude Code, Codex, and Antigravity at work, new risks appear: API keys written in plaintext in env files, pasted into chats, committed to Git, or printed to logs by an agent. Relying on people to remember and manage secrets no longer works.

This course's conclusion is simple: Don't memorize secrets. Don't store them in plaintext. Let a system hand them over only when needed. That system is 1Password.

What makes this course different

  1. Why, What, How: understand the need before you start. You organize real breach cases with a 2x2 matrix and the Pyramid Principle, so you understand logically why password management matters now. Then you learn how 1Password works (Secret Key, end-to-end encryption, zero knowledge) and how it differs from other options.

  2. A 10-step demo lab you can reproduce from start to finish. Starting with creating an account and storing your Emergency Kit, you move on to vault design, passkeys, 2FA, Watchtower, and installing 1Password CLI, following the same steps as the instructor on screen. Every step is also in the PDF Hands-on Lab Guide.

  3. The high point: one API key, three AI agents, no plaintext left behind. Using secret references and op run, you safely use an Anthropic (Claude) API key stored in 1Password from three agents: Claude Code, Codex, and Antigravity. Each agent stays signed in to its own subscription, and only the app the agent runs receives the API key. This is a design you can use in real work. The course also demonstrates guardrails with deny rules, hooks, and MCP, and shows how to rotate a key without breaking anything.

Included materials

  • Hands-on Lab Guide (PDF, 17 pages)

  • Course files: a sample Python script, an env file with secret references, agent rules, sample settings for each agent, and a sample hook

Note: breach counts are approximate, based on figures published by the companies and authorities. 1Password pricing and on-screen wording may change; check the official website for the latest information. The hands-on demos were recorded with the instructor speaking Japanese and have been dubbed into English; the UI shown on screen is partly in Japanese, and every step is explained in English narration and in the English Lab Guide.

Who this course is for:

  • Developers who have started using AI agents such as Claude Code, Codex, or Antigravity at work
  • Anyone who wants to use AI more but is unsure how to handle API keys and passwords
  • IT staff considering a password manager for their company or team
  • Anyone who wants to reliably protect their own and their family's accounts from leaks and takeovers