list_crews read the body before checking the status code, so any non-200
answer was reported as "You don't have any Crews yet": a 401 for an
account AMP will not accept, a 500 from AMP, or a proxy's HTML page (which
also raised an uncaught JSONDecodeError). Validate the response first, as
every sibling deploy command does, and show the empty message only for a
successful empty list.
The error paths in PlusAPIMixin._validate_response raised a bare
SystemExit. A SystemExit with no code is reported by the interpreter as
status 0, so a command that rejected a 422, a non-JSON body or any other
non-2xx response still looked like a success to CI and to shell scripts.
Pass exit code 1 from each path and cover all three with a regression
test that asserts the exit status rather than only the exception type.
Six failure paths in the crewai tool commands raised a bare
SystemExit: create with an existing folder, create inside a project,
install on 404 and on any other non-200, login on a non-200, and
_add_package when uv writes to stderr. SystemExit() carries code None,
which the interpreter reports as exit status 0, so each printed its
error and reported success to scripts and CI.
Raise SystemExit(1) in those branches, matching publish and the
_require_* helpers in the same module, and pin the exit status in the
existing install tests plus tests for the other branches.
When AMP refuses a signed-out crewai eval with account_required (the run
was already read once without an account, or it belongs to an account now),
ask at a terminal whether to log in, run the existing login flow, and retry
the evaluation once with the new login. A signed-in read claims an unclaimed
run for the login's organization, so the retry succeeds.
With no terminal the refusal stands and adds one line: run crewai login,
then crewai eval again. A run another organization claimed is still not
found after the login; that is said plainly instead of AMP's bare 404.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On CrewAI AMP an artifact's url is now a download link that expires
after a day, for attaching the file. share_url is the viewer page
people open. The save_artifact tool, the flow skill, the CLI AGENTS.md
template and the artifacts docs now say which link to use where.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`publish()` built `git.Repository()` before checking `force`. The
constructor verifies git is installed, that the directory is a git
repository and runs `git fetch`, so `crewai tool publish --force` still
failed outside a repository or without a reachable remote, even though
the option help text promises to bypass those validations. Check `force`
first so the repository is only built when the validation actually runs.
`publish()` raised a bare `SystemExit()`, whose code is `None`, after
printing that local changes must be resolved. The command therefore
returned exit status 0 even though nothing was published, so scripts and
CI pipelines treated a refused publish as a success. Raise
`SystemExit(1)`, as the skill publish path already does, and assert the
status in the existing test.
* feat: save HTML or markdown output as a PDF artifact
* fix: stop PDF rendering from fetching remote URLs
Agent-written HTML could make the host fetch internal services or cloud
metadata while rendering a PDF, and embed the response in the artifact.
The renderer now loads only inline data: URLs, so it makes no network calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(artifacts): save files as versioned, shareable artifacts
Crews, agents and flows can now save reports, charts, PDFs and other
files as artifacts. Set Task(artifact=...) to save a task's output,
artifacts=True to give agents a save_artifact tool, or call
save_artifact() from a flow step. Saving the same identifier again
creates a new version. Files go to ./artifacts/ locally
* handle fence kinds
* fix: only save files from the working directory
* feat(artifacts): read saved artifacts back in later steps
A run can now read back an artifact it saved, so a flow that pauses for
human feedback can revise its report after resuming on another worker.
Call load_artifact() for the latest or a given version, or list
{artifact: <identifier>} under input_files on a declarative agent step.
Custom stores add an optional load(). Docs cover it in all four languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): keep a deeply nested span the run app cannot render as text in one step
On Python 3.12 a nest the indent encoder cannot walk failed to parse, and the
run app retried it from every inner bracket, re-parsing the whole nest each
time: 4,000 levels took 25s locally and timed out test_format_json_in_text_
survives_deep_nesting (>60s) on CI's 3.12 runners. A span deeper than 100 that
fails to parse is now kept as text and skipped; shallow spans still retry from
the next bracket so JSON inside them is formatted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(cli): use the module's top-level import in the deep-span test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
load_jsonc_file read the files as utf-8, so a leading byte order mark made json.loads fail with 'Unexpected UTF-8 BOM'. The api key check of crewai run parsed the same files the same way and found no models in them.
fetch_and_json_env_file, load_env_vars and write_env_file opened .env with the platform default encoding. On Windows a UTF-8 file with non-ASCII text made deploy send no variables and made load_env_vars raise. Use UTF-8, as python-dotenv does.
`crewai install` printed the `uv sync` error and returned, so the command
exited 0 after a failed install. Re-raise the failure through the same
SystemExit path `deploy` and `run` already use.
* feat(cli): pick tools for standalone agents and add them later
`crewai create agent` opens the same tool picker and CrewAI Platform
setup as `crewai create crew` for JSON and YAML agents. New
`crewai tool add` appends tools to an existing agent definition, and
`crewai tool setup` validates the definition's platform apps on AMP and
saves the Enterprise Action Auth Token to .env.
Refs OSS-270
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): keep a project .env from redirecting the AMP integration check
Importing crewai_tools runs load_dotenv(), which can load the .env of
the project crewai is installed in. The platform setup then sent the
login-derived Enterprise Action Auth Token with requests, honouring any
proxy, CA bundle or CREWAI_FACTORY (TLS verification off) that .env set.
Restore the machine's proxy and CA settings after the import, as
`crewai run` and `crewai eval` already do, and also pin the requests-only
REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE and CREWAI_FACTORY. This covers
`crewai create crew`, `crewai create agent`, and `crewai tool add|setup`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(cli): keep side effects out of asserts in the dotenv transport test
Under `python -O` the asserts are stripped, so the platform setup call
and the proxy pops would not run. Do them first, then assert.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`crewai create agent <name>` now writes agent.json, matching the
JSON-first crew scaffold. YAML stays available with --format yaml and
Python with --format python; loading and discovery are unchanged, so
existing YAML projects keep working.
Update the help default, template READMEs, CLI docs and the standalone
agent guide in English, Arabic, Korean and Brazilian Portuguese.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(memory): default the memory analysis model to gpt-6.1-sol
Memory() without an llm now analyses with gpt-6.1-sol instead of
gpt-5.4-mini. The memory docs, which still named gpt-4o-mini, now name the
current default in en, ar, ko and pt-BR.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* feat(memory): default to gpt-6-luna rather than gpt-6.1-sol
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* feat: make gpt-6-luna crewAI's default model everywhere
- DEFAULT_LLM_MODEL (crewai and the CLI's copy, now held equal by a test),
crew planning, the OpenAI agents adapter, `crewai test`, the agent
templates (still on the Responses API), OCRTool (without its temperature,
which Luna rejects) and VisionTool (easy and medium on Luna, hard on
gpt-6.1-sol) default to gpt-6-luna.
- GPT-6 models count as vision models, so a default agent takes input_files.
- A model whose function tools /v1/chat/completions serves only with
reasoning_effort="none" is remembered per endpoint, so later tool calls send
it up front instead of paying a rejected request each time.
- Docs that state a default now name gpt-6-luna, in en, ar, ko and pt-BR,
and the AGENTS.md eval answer keys follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The test pushed a real screen from an app that isn't running, which needs the
main thread's event loop. Any test that called asyncio.run() earlier in the
same worker leaves none, so it failed by test order (seen on #9234's CI after
its new crewai-files tests moved the shard split). Its siblings already stub
push_screen.
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): count a crewai eval run that exits with an error as run_failed
When the run `crewai eval` starts exits with an error (a JSON crew, a
declarative flow or an agent whose run fails), the SystemExit went straight
through the command: no stop was counted and, with nobody watching, the
error stayed in .crewai/last_run.log. The command now treats it as the run
it is: graded when it was traced, and otherwise counted as
eval_stopped:run_failed, with the log's last lines and a sentence that says
the run failed instead of the three-way guess untraced_after_run gives.
Clean exits and Ctrl-C (130) go through as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): exit 1 after grading a crewai eval run that failed
A run that exits with an error and was still traced is graded, by the
command or on the run app's screen, but the command then exited by the
gate alone, so a failed run with a passing grade, or one the app graded
(its marker returned no run), exited 0. It now exits 1 after the verdict
whenever the run failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`crewai create` already writes `.env` owner-only (#9029), but
`turn_tracing_on` (`crewai eval` and the run app's Evaluate) created a
missing `.env` with `touch()`, so it took the umask's 0644 and
python-dotenv kept that mode when it wrote the flag. That file is where the
project's API keys go next. It is now created 0600; an existing `.env`
keeps its mode and contents.
Also pins write_env_file's Windows branch: no fchmod, keys still written.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(llm): check openai-compatible providers' api key on the first call
OpenRouter, DeepSeek, Cerebras, Dashscope and DeepInfra checked their key
while the model was validated, so LLM("deepseek/...") raised at
construction and Agent, LiteAgent, Agent.model_validate and Crew's
function_calling_llm raised a pydantic ValidationError around it. Like
OpenAI, Anthropic, Gemini and Azure, they now build without a key and the
first call raises MissingAPIKeyError, with the same message. OPENAI_API_KEY
is never used for them. LLM.__new__ no longer unwraps the key error, which
nothing raises any more.
The CLI now knows the DEEPSEEK, OPENROUTER, DASHSCOPE and DEEPINFRA key
names, so `crewai run` asks for them as it does for OpenAI's, including for
an agent project, which now loads and reaches the prompt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(llm): keep MissingAPIKeyError importable from crewai.llm
`from crewai.llm import MissingAPIKeyError` works in released 1.15.34-1.15.37
because llm.py imported it for the unwrapping this PR removes. Keep the import
so that path keeps working, and pin it with a test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(telemetry): tag eval usage spans with target and a per-evaluation id
The warehouse could not tell whether `crewai eval` graded a local run or an
execution id somebody passed with --run, nor which start, verdict and stop
belonged to one evaluation. `cli_usage:eval` now carries `target`
(last_run, given_run, app) and every eval start, `eval_finished:*` and
`eval_stopped:*` carries `eval_id`, a uuid4 drawn per evaluation. The
feature whitelist gains a prefix rule (keys ending in ":") so the dynamic
finished/stopped features admit `eval_id` and nothing else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(telemetry): take the feature out of the sent attributes before asserting on it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(telemetry): end eval_id with the evaluation's outcome
The eval_id ContextVar was set and never reset, so in a long-lived run app
a later pre-evaluation stop (declined, untrusted_amp) inherited the id of an
evaluation that had already finished or stopped. The count of the outcome
(record_finished, record_stop) now takes the id and clears it; the stop the
run app counts right after evaluate_run raised still carries it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`crewai run` printed the error from a failed `uv run run_crew` / `uv run
kickoff` and then exited 0, so CI and coding agents saw success. It now
exits with the script's own code, and with 1 when uv cannot be started,
as the JSON crew, declarative flow and agent paths already do.
`crewai eval`, which runs the crew through run_crew(), still grades a run
whose script failed and still shows the tail of its run log.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`crewai eval` handed the report link to `webbrowser.open` whenever AMP sent
one; only DMN mode suppressed it, so SSH sessions and CI jobs still tried to
launch a browser. `--no-open` prints the link and opens nothing: for a run's
evaluation, for `--models` comparisons, and in the run app `crewai eval`
opens when it has to run the crew first (told through the existing handshake
holder and token file).
Closes#7728
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): eval asks to share the trace with Enter meaning yes, and says why
Evaluating a project that never turned tracing on asked on the generic
trace-sharing prompt: default No and a 20-second timeout at the terminal, and
"Share Trace / Cancel" in the run app with no word that the evaluation needs
the trace. Pressing Enter, waiting, or not reading the panel all stopped the
evaluation; it is the most common reason evaluations end without a verdict.
`crewai eval` now asks its own question with click.confirm(default=True), as
it already does for a project that turned tracing off, and never times out.
The run app's Evaluate path shows EvaluateConsentScreen ("Share & Evaluate"),
which says the evaluation needs the trace; Enter shares, Cancel or Esc runs
nothing. The end-of-run trace-sharing screen is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): ask to share the trace for evaluation without listing its contents
The question and the run app's Evaluate screen say what the trace is for
(CrewAI AMP grades it) rather than enumerating what it may hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(agent): scaffold conversational standalone agent projects
* refactor(cli): start standalone chat through Agent.chat
* fix(agent): validate configs without executing project code
* test(cli): align agent usage checks with current runtime
* docs(agent): document CLI project usage telemetry
* test(cli): restore the blank-key JSON crew usage expectation
A blank OPENAI_API_KEY still fails while the model is built with the locked
openai SDK, so the run counts the OpenAIError as before. The expectation
that the crew loads came from a different local runtime and fails here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): ask for a missing API key before the first turn
Providers build their clients lazily, so a scaffolded agent with no key
loaded fine and failed on its first chat turn with a provider error.
Check the loaded Agent's model before chat or kickoff and reuse the CLI's
key prompt, or print the line to add when no terminal can ask.
Config projects get their own .env.example without MODEL, which only the
Python template reads, and both use the YOUR_API_KEY placeholder that the
CLI and providers treat as unset.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(agent): drop a stray comment from the project loader
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): ask for blank keys, abort cleanly and name the llm host
A blank provider key failed while the model was built, before the key
prompt could run, so unset blank keys after crewai is imported (its import
loads the project's .env again). Ctrl-C or Ctrl-D at the prompt now ends
the run as aborted with exit code 130, which the launching process does not
count as a failed script. The prompt also names the host a loaded agent's
llm sends requests to, since YAML and JSON agents keep base_url outside the
files the prompt scans.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(agent): add experimental conversational Agent sessions
* refactor(agent): use the built-in converse route for Agent chat
* fix(agent): type synchronous and asynchronous conversation results
* feat(agent): add Flow-compatible chat with an optional terminal UI
* feat(chat): stream conversational TUI responses by default
* fix(agent): honor quiet mode in standalone conversations
* fix(chat): stream plain conversational replies by default
* fix(agent): isolate copied sessions and contain TUI failures
* test(agent): isolate conversational console listeners
* test(cli): await streaming chat trace cleanup on quit
* fix(cli): show conversation trace links after TUI exit
* feat(agent): measure standalone conversation usage
* fix(agent): isolate conversation sessions and concurrent turns
* fix(tracing): pin AMP settings before loading project environment
* revert: drop AMP environment pinning from the conversational Agent PR
The AMP destination, credential and tracing-consent changes fix an issue
that already exists on main and are unrelated to standalone Agent
conversations. They also clear CREWAI_ENTERPRISE_ACTION_AUTH_TOKEN and
CREWAI_TRACING_ENABLED loaded from a project's .env, which the project
template tells users to set there. They will land in a separate PR.
This reverts commit 5e161245f2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* revert: drop conversation trace links after TUI exit
Printing a View traces link after the TUI exits and tracking the latest
turn's execution id change crewai run for every conversational Flow, not
just standalone Agents. Keep this PR scoped to Agent conversations.
This reverts commit 26aa463904.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The `crewai run` key check read an empty value as unset and took the other
source. A Python crew keeps an empty shell key or MODEL over its `.env`, and a
JSON crew's run applies a blank `.env` MODEL over the shell's, so the check
skipped a key the run lacked or checked the wrong provider.
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): stop a json crew run cleanly when its api key is missing (#9033)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): name hosts the crew set while loading in the line to add a key
Without a terminal, a JSON crew run that stops for a missing key prints the
line to add it, and that line only named hosts from `.env` and the crew's
files. The prompt at a terminal also named hosts the crew's own code set in
the environment while it loaded; the line now names them too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cli): ask for a missing api key when crewai run starts (#9032)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* feat(cli): offer to run a new project right after crewai create (#9031)
* fix(cli): read a parenthesized endpoint literal in a crew's code
base_url=("https://...") is still a plain string at the LLM constructor, but
the scan wanted the quote right after the equals sign. A literal in
parentheses now counts, and so does an f-string with no replacement field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): parse a crew's Python for endpoints instead of matching it
The endpoint scan matched Python with a regex, so a URL on the next line in
parentheses, a backslash continuation or an annotated assignment hid the
host from the key prompt. It now walks the parsed source: keyword arguments,
dict entries, assignments (os.environ[...] included) and setdefault/putenv
set to a constant string. A JSON crew's custom tools, which load before its
agents build their llm, are read too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): check the model a JSON crew's run will use, and name explicit YAML keys
A JSON crew's run applies the project .env MODEL over the shell's, so the
preflight now reads it that way for JSON crews; Python crews keep the shell's,
as crewAI's own load_dotenv does. A YAML file using explicit `? key` entries,
which can override what the scan reads, is named as unreadable rather than
skipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): count a shell key a python crew keeps over a .env placeholder
A Python crew's own load_dotenv leaves a key the environment already has, so
the preflight asked for a key the run would have. It now reads keys the way
each kind of run applies the .env: the .env line first for a JSON crew, the
environment first for a Python crew or flow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(openai): call GPT-6 Astra and GPT-6.1 Sol tools through the Responses API
On /v1/chat/completions every GPT-6 model rejects function tools with a
reasoning effort, and the 400 offers reasoning_effort "none" as the way out.
GPT-6 Luna and GPT-6.1 Terra accept it; GPT-6 Astra and GPT-6.1 Sol refuse it
with an "Unsupported value" 400, so any agent with a tool failed on them.
When the "none" retry is refused, or the 400 does not offer it (Bedrock's
OpenAI-compatible endpoint, from #7741), the call now goes to the Responses
API, and the model is remembered so later calls go there directly. The refused
retry no longer logs an error or emits LLMCallFailedEvent.
Co-authored-by: kimnamu <jihoon.lucas.kim@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(openai): keep streamed tool calls, storage default and routing per endpoint
Three gaps in the move to the Responses API, found in review:
- The streaming Responses handlers dropped function calls when the caller
passed no available_functions, as crewAI's native agent executor does, and
returned "". They now return the calls, as the non-streaming handler does.
- An implicit move from chat completions sent no `store`, so OpenAI stored the
call. It now sends store=False unless `store` is set, a response is chained,
or the endpoint is a compatible server.
- The learned set was keyed by model name alone, so one gateway's 400 could
reroute the same name on api.openai.com or another gateway. It is keyed by
(endpoint, model) now, like the reasoning-effort set.
The live cassettes now assert the tool actually ran, since they match
requests on path alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): offer only current models in the pickers and name missing keys (#9028)
* fix(cli): lead model pickers with small models and name missing keys
The create wizards now list gpt-5.6-luna and claude-sonnet-5 first, drop
gpt-5.4-mini, and fall back to openai/gpt-5.6-luna instead of openai/gpt-4o.
API-key prompts hide input, and a skipped key prints the exact .env line to
add instead of claiming the key was saved; the JSON crew prompts once per
provider and, in DMN or --skip-provider mode, names the key in its next steps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): hide only secret prompts and skip keys the shell already sets
Every ENV_VARS prompt was hidden, including the Azure deployment name and
endpoint URLs, and a hidden prompt reads the terminal rather than piped stdin.
Prompts now hide only secrets and only when stdin is a terminal, and the
missing-key hint leaves out values with a runtime default (AWS region, Azure
API version) and keys already exported in the environment. A test now pins
the next-steps hint for --skip-provider without DMN.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): offer only current models in the create pickers
Every provider in `crewai create crew` (wizard and --classic) now lists only
its current models, small to top, verified against the vendors' docs on
2026-11-03: GPT-6 Luna / GPT-6.1 Sol / GPT-6 Astra, Claude Sonnet / Haiku /
Opus 5.5 and Fable 5.1, Gemini 3.8 Flash / 3.5 Flash Lite / 4 Argon, and
current open-weight models elsewhere. GPT-4, GPT-5.x, the o-series, Claude 4
and Llama 3 entries are gone; they stay reachable through "Other".
The wizard gains curated lists for bedrock, azure, nvidia_nim, huggingface,
cerebras, sambanova and watson, which showed LiteLLM's feed before. A preview
model is labeled "(preview)" and never the default. The fallback model is
openai/gpt-6-luna.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): write watsonx models with the prefix crewAI can run
The wizard built `watson/<model>` from its provider key, and LiteLLM, which
crewAI hands watsonx models to, rejects that provider name. With a curated
watsonx list, `--provider watson` now wrote it too. The wizard writes
`watsonx/...`, as classic create already did, and maps the prefix back to the
`watson` ENV_VARS entry when it asks for or lists keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): keep classic create working when the model catalog is unreachable
With no fresh LiteLLM cache and the fetch failing (offline, DNS, proxy),
`crewai create crew --classic` returned before the provider menu, exited 0,
and left a folder with no pyproject.toml, crew.py or .env. select_choice
also reloaded the catalog itself, so each picker aborted the same way.
Now the catalog is optional: the curated PROVIDERS and MODELS are offered
and creation finishes, and the catalog still adds its providers to the
"other" list when it loads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
* fix(cli): accept --provider watsonx as the watsonx provider
The wizard writes watsonx models as watsonx/..., but --provider watsonx found
no curated list and fell back to the OpenAI default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: kimnamu <jihoon.lucas.kim@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
test_the_comparison_is_counted_with_the_models_and_nothing_that_names_it used
openrouter/meta-llama/llama-4-maverick as a model crewAI's catalog does not
list. The v1.15.34 catalog refresh (#8922) added it, so telemetry now names it
and the test fails on main. Use a model under a non-public vendor, which stays
`openrouter/other` however the catalog grows.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): stop offering shut-down gemini models in crewai create
The Gemini list in `crewai create` offered eight models Google has shut down
or no longer serves (gemini-3-pro-preview, 1.5, 2.0 and dated preview/exp
snapshots), so picking one failed the first run with a ClientError. Replace
them with Google's current stable models.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): drop gemini 2.5 from the default create wizard's fallback list
The default `crewai create crew` wizard uses its own curated list when no
key is set, not `crewai_cli.constants.MODELS` (that one is only reached by
`--classic`). It still offered gemini-2.5-pro/flash/flash-lite, which
Google now serves only to accounts that used them before; gemini-2.5-flash
hit ClientError in 12 of 17 projects on 1.15.31-33. Offer Google's current
stable models instead, keeping gemini-3.8-flash first as the default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(llm): raise MissingAPIKeyError for openai-compatible providers
The OpenAI-compatible providers (openrouter, deepseek, cerebras,
dashscope, deepinfra) check the key in a pydantic validator, so a missing
or placeholder key reached LLM.__new__ inside a ValidationError and was
wrapped again in ImportError("Error importing native provider: ...").
Users read it as a missing package and telemetry recorded ImportError.
LLM(...) now takes the MissingAPIKeyError out of the ValidationError and
raises it as itself; every other construction failure keeps the
ImportError. The deploy validator classifies MissingAPIKeyError as the
existing llm_init_missing_key warning instead of falling through to an
error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): keep the missing-key warning for an agent built from a model string
`Agent(llm="deepseek/...")` wraps the re-raised MissingAPIKeyError in its own
pydantic ValidationError, which no longer says "native provider", so deploy
validation reported a generic blocking error instead of
llm_init_missing_key. A ValidationError now counts as a missing key only
when its message names one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>