AI Agent Engineering > Install and configure a Secure Agent > Environment variable configuration for proxy servers
  

Environment variable configuration for proxy servers

If your organization uses an outgoing proxy server to connect to the internet, you need to configure some environment variables in the startup script for the AI Agent Runtime service.
Note: You can't use the Pinecone Retriever tool if your organization uses an outgoing proxy server to connect to the internet.
    1Navigate to the directory where the latest AI Agent Runtime package is installed.
    For example, if the Secure Agent installation directory is /root/rel_infaagent/ and the latest package version is 110, the directory would be:
    /root/rel_infaagent/downloads/package-AIAgentRuntime.110/package
    2Edit the startup.sh script and add the following environment variable commands between the lines JAVA=$AGENT_JAVA17_HOME/bin/java and $APP_DIR_VERSION/runtime.sh start & near the end of the file:
    export HTTP_PROXY="http://<host name>:<port number>"
    export HTTPS_PROXY="http://<host name>:<port number>"
    export http_proxy="http://<host name>:<port number>"
    export https_proxy="http://<host name>:<port number>"
    export grpc_proxy="http://<host name>:<port number>"
    For example, the following file snippet shows the commands when the proxy host name is "mySquidServer" and the port number is 3128:
    JAVA=$AGENT_JAVA17_HOME/bin/java

    export HTTP_PROXY="http://mySquidServer:3128"
    export HTTPS_PROXY="http://mySquidServer:3128"
    export http_proxy="http://mySquidServer:3128"
    export https_proxy="http://mySquidServer:3128"
    export grpc_proxy="http://mySquidServer:3128"

    $APP_DIR_VERSION/runtime.sh start &
    echo "SLEEPING for 30s"
    sleep 30
    $APP_DIR_VERSION/python_runtime.sh start &

    exit 0
    3Restart the Secure Agent.
    For more information about restarting the Secure Agent, see "Stopping and restarting the Secure Agent on Linux" in the Runtiime Environments guide in the Administrator help.