Coding Agent: GPT-6 Astra + Agents SDK
Building a coding agent on gpt-6-astra with the OpenAI Agents SDK: web_search, shell and apply_patch tools, your own executor and editor in a workspace folder, approval for every step through interruptions, isolation with sandbox agents, and when the Agents API or Codex is the simpler choice.
ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.
Which Model a Coding Agent Needs
For hard coding tasks OpenAI currently recommends gpt-6-astra, the most capable model in its lineup. The official guides for the shell and apply_patch tools use it in every example. For a balance of price and quality, use gpt-6.1-sol: $2 per million input tokens and $10 per million output tokens, compared with $10 and $50 for Astra. OpenAI describes it as offering near-Astra performance.
gpt-4.1, which this lesson used before, is deprecated and shuts down on January 14, 2027.
shell works only through the Responses API, and gpt-6-astra also calls tools only through it. The Agents SDK calls the Responses API by default, so no extra setup is needed.
pip install openai-agents
export OPENAI_API_KEY=<your key>
Далі урок відкривається після безкоштовної реєстрації
Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.


