How many API clients can connect to TWS or IB Gateway?

Each instance of TWS or IB Gateway can handle up to 32 API client connections, all of which must have distinct client IDs. The client ID is specified when initiating an API connection, and must be an integer greater than or equal to zero. For further information on establishing API connections, please visit the documentation.

Powered by IBot
What is IB Gateway?
TWS/IB Gateway and their interaction with proxy servers
Can I link TradingView to my IBKR account?
What are the differences between connecting via TWS API and FIX/CTCI?