- AI Agents in Container
AI Agents in Container
Content
AI Agents in Container
kasm Desktop
docker run \
--name browser-use \
--shm-size=4096m \
-w /mnt \
-p 8080:6901 \
-e VNC_PW=password \
-id kasmweb/ubuntu-noble-desktop:1.16.1
user: kasm_user
password: password
browser-use
Install latest version of python
docker exec -u root -it browser-use bash
visudo
kasm-user ALL=(ALL) NOPASSWD: ALL
passwd kasm-user
passwd root
exit
docker exec -it browser-use bash
sudo apt update -y
sudo apt install -y python3-venv git xvfb python3-full
web-ui
# Start in Desktop directory
cd /home/kasm-user/Desktop
# Remove any existing web-ui directory if it exists
sudo rm -rf web-ui
# Clone the repository
git clone https://github.com/browser-use/web-ui.git
cd web-ui
# Create and set up virtual environment in your home directory instead
python3 -m venv ~/web-ui-venv
source ~/web-ui-venv/bin/activate
# Install UV
curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
source $HOME/.local/bin/env
# Verify environment
whoami
uv --version
python3 --version
# Install requirements using the virtual environment in home directory
uv pip install -r requirements.txt
# Install Playwright dependencies
playwright install-deps
playwright install
# Setup environment file
cp .env.example .env
# Run the application with Xvfb
xvfb-run -a --server-args="-screen 0 1280x1024x24" python webui.py --ip 0.0.0.0 --port 7788
# Access the application at:
# http://localhost:7788
# Remove existing venv
deactivate
cd /home/kasm-user/Desktop
sudo rm -rf web-ui
Install OLLAMA
curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
http://localhost:11434
ollama pull deepseek-r1:8b
ollama pull deepseek-r1:8b # I used this for docker
ollama run deepseek-r1:8b
ollama list
ollama stop deepseek-r1:8b
ollama rm deepseek-r1:8b
MAC OS
- Install latest version of python
brew install python3
git clone https://github.com/browser-use/web-ui.git
# Install UV Package https://docs.astral.sh/uv/getting-started/installation/
cd web-ui
python3 -m venv .venv
source .venv/bin/activate
curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
source $HOME/.local/bin/env
uv --version
python3 --version
uv pip install -r requirements.txt
playwright install-deps
playwright install
cp .env.example .env
python webui.py --ip 127.0.0.1 --port 7788
http://localhost:7788
Install OLLAMA on MAC OS
https://ollama.com/download/mac
ollama pull deepseek-r1:8b # I used this for Mac OS
ollama run deepseek-r1:8b
Vscode Insiders
Google AI Studio (API Key)
MCP ServerS
-
https://github.com/punkpeye/awesome-mcp-servers?tab=readme-ov-file#file-systems
-
This provides internet access, so you can get latest documentation and update code accordingly
git clone https://github.com/modelcontextprotocol/servers.git
cd servers
docker build -t mcp/puppeteer -f src/puppeteer/Dockerfile .
- vscode Insider Settings
{
"mcp": {
"inputs": [],
"servers": {
"puppeteer": {
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"]
}
}
}
}
- Claude Desktop Settings
{
"mcpServers": {
"puppeteer": {
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"]
}
}
}
- Cursor
{
"mcpServers": {
"puppeteer": {
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"]
}
}
}
- Codium Windsurf
{
"mcpServers": {
"puppeteer": {
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"]
}
}
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server