I'm trying to deploy my agent on livekit cloud but...
# ask-ai
h
I'm trying to deploy my agent on livekit cloud but I keep getting this 'package livekit-agents not found in any project files' but when I run this test.py file 'from livekit.agents import cli print("livekit-agents is installed")' I get 'livekit-agents is installed'. What could the problem be?
t
Thanks for reaching out, Isadru. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like you're seeing the error 'package livekit-agents not found in any project files' because the LiveKit CLI can't find the
livekit-agents
package listed in your project's dependency files during its SDK version check. This check is there to help make sure your project is using a compatible version of the LiveKit Agents SDK. For Python projects, the CLI looks for
livekit-agents
in common dependency files like
requirements.txt
,
pyproject.toml
,
Pipfile
, and others. If the package isn’t mentioned in any of these files, you’ll see this error—even if the package is installed locally. Here’s how you can fix this: • Make sure you’ve installed the LiveKit Agents SDK by running
pip install livekit-agents
. • Add
livekit-agents
to your project’s dependency file, such as
requirements.txt
. If you’re in a pinch and want to skip this check temporarily, you can use the
--skip-sdk-check
flag with the
lk agent
command. Just a heads-up, though—this isn’t recommended for production environments. Sources: cmd/lk/agent.go | agents/README.md
h
my requirements.txt file has livekit-agents, for more info, here's my requirements.txt file 'aiofiles==24.1.0 aiohappyeyeballs==2.6.1 aiohttp==3.12.15 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.10.0 attrs==25.3.0 av==15.1.0 cachetools==5.5.2 certifi==2025.8.3 cffi==2.0.0 charset-normalizer==3.4.3 click==8.2.1 colorama==0.4.6 coloredlogs==15.0.1 distro==1.9.0 docstring_parser==0.17.0 eval_type_backport==0.2.2 filelock==3.19.1 flatbuffers==25.2.10 frozenlist==1.7.0 fsspec==2025.9.0 google-api-core==2.25.1 google-auth==2.40.3 google-cloud-speech==2.33.0 google-cloud-texttospeech==2.29.0 google-genai==1.36.0 googleapis-common-protos==1.70.0 grpcio==1.74.0 grpcio-status==1.74.0 h11==0.16.0 httpcore==1.0.9 httpx==0.28.1 huggingface-hub==0.34.4 humanfriendly==10.0 idna==3.10 importlib_metadata==8.7.0 Jinja2==3.1.6 jiter==0.10.0 livekit==1.0.12 livekit-agents==1.2.8 livekit-api==1.0.5 livekit-blingfire==1.0.0 livekit-plugins-cartesia==1.2.8 livekit-plugins-deepgram==1.2.8 livekit-plugins-google==1.2.8 livekit-plugins-noise-cancellation==0.2.5 livekit-plugins-openai==1.2.8 livekit-plugins-silero==1.2.8 livekit-plugins-turn-detector==1.2.8 livekit-protocol==1.0.6 MarkupSafe==3.0.2 mpmath==1.3.0 multidict==6.6.4 nest-asyncio==1.6.0 numpy==2.3.3 onnxruntime==1.22.1 openai==1.107.1 opentelemetry-api==1.36.0 opentelemetry-exporter-otlp==1.36.0 opentelemetry-exporter-otlp-proto-common==1.36.0 opentelemetry-exporter-otlp-proto-grpc==1.36.0 opentelemetry-exporter-otlp-proto-http==1.36.0 opentelemetry-proto==1.36.0 opentelemetry-sdk==1.36.0 opentelemetry-semantic-conventions==0.57b0 packaging==24.2 pillow==11.3.0 pinecone==7.3.0 pinecone-plugin-assistant==1.8.0 pinecone-plugin-interface==0.0.7 prometheus_client==0.22.1 propcache==0.3.2 proto-plus==1.26.1 protobuf==6.32.0 psutil==7.0.0 pyasn1==0.6.1 pyasn1_modules==0.4.2 pycparser==2.23 pydantic==2.11.7 pydantic_core==2.33.2 PyJWT==2.10.1 pyreadline3==3.5.4 python-dateutil==2.9.0.post0 python-dotenv==1.1.1 PyYAML==6.0.2 regex==2025.9.1 requests==2.32.5 rsa==4.9.1 safetensors==0.6.2 six==1.17.0 sniffio==1.3.1 sounddevice==0.5.2 sympy==1.14.0 tenacity==9.1.2 tokenizers==0.22.0 tqdm==4.67.1 transformers==4.56.1 types-protobuf==6.30.2.20250822 typing-inspection==0.4.1 typing_extensions==4.15.0 urllib3==2.5.0 watchfiles==1.1.0 websockets==15.0.1 yarl==1.20.1 zipp==3.23.0'
t
Thank you so much for sharing your
requirements.txt
file! I understand how tricky it can be when the LiveKit CLI doesn’t detect
livekit-agents
, even though it’s listed in your dependencies. This usually happens if the installed version is below the minimum required SDK version. No worries though! To get this sorted, please make sure you have the latest version of
livekit-agents
installed. You can easily upgrade it by running:
Copy code
pip install --upgrade livekit-agents
Once you’ve upgraded, try deploying your agent again. If you run into any more issues or have questions, I’m here to help—just let me know! Sources: pkg/agentfs/sdk_version_check.go
h
I still getting the same error even after running 'pip install --upgrade livekit-agents'
t
Could you please share the exact command you're using to deploy your agent? Also, just to make sure we're on the same page, is your
requirements.txt
file placed in the root directory of your project?
h
I'm using 'lk agent create --verbose'
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!